1829779 Members
1738 Online
109992 Solutions
New Discussion

Enable port

 
SOLVED
Go to solution

Enable port

Hi Guys,

Can you please tell me .how to enable port in HP-UX.

Many Thanks,
Pratibha
6 REPLIES 6
Torsten.
Acclaimed Contributor

Re: Enable port

"enable" or "open" is most of the times misleading. There must be a process listening on a certain port in order to enable clients to connect.

What port/application you talk about?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
avizen9
Esteemed Contributor
Solution

Re: Enable port

Hello Please go through below thread having good explanation for your question, thanks,

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1266402


First look into /etc/services.
/etc/services :- Lists service names and ports/protocols used with these services
2)put the entry in /etc/inetd.conf.suppose I have to use telnet then entry will be like in /etc/inetd.conf
telnet stream tcp nowait root /usr/lbin/telnetd telnetd
3)check configer port lisnening or not
#netstat -na |grep
Nido
Trusted Contributor

Re: Enable port

Pratibha,

Check with the application owner what port they want you to enable on unix side.

Make sure there should be uniqe port entries in /etc/services to avoid conflicts.

To check if any application listening on port: # netstat -an |grep

You can use private ports from 49152 through 65535.

Thanks,
" Let Villagers Be Happy!! "
Suraj K Sankari
Honored Contributor

Re: Enable port

Hi,
For which application and which port you want to open.

/etc/services is the file where all port no are mention

if you want to block some port then put #sign at the beginning of that line for opening the port delete this character from there and restart your net with inetd -c


Suraj

Re: Enable port

Thanks Guys!!!
Steven Schweda
Honored Contributor

Re: Enable port

> /etc/services is the file where all port
> no are mention

This is not true, unless by "all" you mean
"some, but not all". It's easy to create an
IP network service which uses a port number
which is not mentioned in /etc/services. In
fact, it's easier to use constants in the
code than it is to get the info from
getservbyname().