Cant bind to


I dont know if it is a QNX-related problem but I do not have an idea where it could come from.

I create a socket and then try to bind() it as server socket. That works well for the IP but fails when I use the same port but IP

What could be the reason for that? Server sockets should work on localhost too?



What error are you getting when you try to do the bind?

I’m going to assume that if you do an ‘ifconfig’ command that have a loop back adaptor (ie you’ve started io-net).


bind() returns an error 257 - and ifconfig tells me that there is an IP

lo0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 33212
inet netmask 0xff000000

I also can ping that IP but not bind something to it…


Looking in errno.h I see that 257 says ‘socket not connected’.

So at this point you’d need to post your code to help diagnose the issue.