Operating System - Tru64 Unix
cancel
Showing results for 
Search instead for 
Did you mean: 

/etc/services port addition connnection refused error

vinodan
Advisor

/etc/services port addition connnection refused error

Dear All,
Can anybody tell me what are all steps need to be done after adding a port in /etc/services.I have added 4 ports in services out of them for two ports ia m getting an error connection refused when i am tring to do telnet to that port.
$ telnet 10.0.20.61 3313
Trying...
telnet: Unable to connect to remote host: Connection refused

Am i missing any step ?

Thanks in advance

Vinod
2 REPLIES
Ivan Ferreira
Honored Contributor

Re: /etc/services port addition connnection refused error

The /etc/services is a port-name mapping file. After you add a port to the /etc/services file you need to start a daemon that listen to that port, that normally is done through the inetd daemon or a independent daemon started by a rc script (like /sbin/init.d/sendmail).

Ensure that the daemon that should listen to that port is started before trying to do the connection.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Michael Schulte zur Sur
Honored Contributor

Re: /etc/services port addition connnection refused error

Hi,

programs that are started by the inetd are listed in /etc/inetd.conf

greetings,

Michael