Solved

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

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
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…
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…

815 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now