Solved

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

Posted on 2007-03-20
4
6,646 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 500 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.

690 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