?
Solved

What comand to Open Ports in HP-UX ???

Posted on 2007-03-20
4
Medium Priority
?
6,688 Views
Last Modified: 2013-12-06
Dear experts.

  Can anyone tell me What Command I can use to Open Ports in HP-UX???

Thank you so much!
0
Comment
Question by:cuconsortium
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 38

Accepted Solution

by:
yuzh earned 2000 total points
ID: 18760875
What are you trying to do to open a port?

In *nix (Unix/Linux), network ports (telnet, sendmail, etc) are made available on a system by a running daemon (e.g., sendmail, nfs, etc) or the service managed by inetd.

To close the port, you need to stop the daemon, or disable the service run on the port.

If you want to write a program to run some services on a port, please
have a look at "Unix socket  programming" (you can do a search on the web to find some reference).

to find out what ports are open, you can run netstat command or "lsof" (third party) .
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 19173244
Hi,

regarding ports and protocols, all standard / well defined ports and protocols are defined in /etc/services

This file is normally used by applications that need to know the port and a protocol (udp / tcp) for the server it need to connect to.

e.g. telnet, ftp, ssh clients will look into this file for such info.

Some servers applications will either have their own configuration file to specify udp/tcp and port no., or can pick this from the /etc/services file.

If you are developing such server application, etc. you may let it use /etc/services file.

Regarding opening ports, you need to check the firewall (if any) docs, or talk to your network / security administrator.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question