1825775 Members
2419 Online
109687 Solutions
New Discussion

/etc/services

 
Jeff Chou
Occasional Advisor

/etc/services

Does anyone has the experience about how
to enable a TCP port?
I set a TCP port 10051 in /etc/services.
When I execute the "netstat -a", I can't see
this port was running or listening.
Should I run the other command to trigger
this 10051 TCP port?

Jeff
Jeff
3 REPLIES 3
Robin Wakefield
Honored Contributor

Re: /etc/services

Hi Jeff,

Adding the line to /etc/services on its own will not start anything. You need to start the appropriate listening service/daemon associated with the application.

Rgds, Robin
Paula J Frazer-Campbell
Honored Contributor

Re: /etc/services

Jeff

Setting the port in /etc/services only makes it available to use.

Paula
If you can spell SysAdmin then you is one - anon
Roger Baptiste
Honored Contributor

Re: /etc/services

hi,

Adding the port definition in the services file just provides the translation service for the application to use that port. But, you would need to actually run the application to make use of it!

netstat shows active connections.

HTH
raj
Take it easy.