Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

binding ports

Status
Not open for further replies.

bwbeck

MIS
Nov 16, 2006
3
0
0
US
I am working on setting up some comm programs that have to bind themselves to certain ports on startup. I have assigned the ports in /etc/services, but when I try to launch the program I receive this error:

BAD BIND
Error from errno : 68 for port 12903 for host *****
Could not listen to the port.EXITING!

Any suggestions on what I am missing with the setup of this port?
 
from /usr/include/errno.h :

#define EADDRNOTAVAIL 68 /* Can't assign requested address */

So I'm guessing the port number is already in use...


HTH,

p5wizard
 
I have checked to make sure that nothing else is using that port. The port is not listening from netstat -an and there are no other entries for that port in /etc/services.

Any other suggestions?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top