When I try to bind a socket using linux bind call. it return error 63 (Out of streams resources). I tried to explore (using google) why this error is coming and how to reproduce it but I had no luck. This problem is happening at one of the setup where I do not have direct access. I want to understand why this error is coming and want to recreate the problem. I am using Opensuse linux.
Any help would be really appreciable.
Error 0x63 is EADDRNOTAVAIL, which means you're trying to bind to an address that's already in use. Make sure you are not already running an instance of your program (which would have bound the port), and that there's not something else using the port.
The command
netstat -nat
will tell you if the port is in use. If you have root access you can add an option (-p
on linux) that will also tell you which process has the port open.
There's also the lsof
and/or fuser
commands (depending on your flavor of Linux/Unix) to list open file handles and the owning processes. These also require root or sudo
access.