I have a problem with binding a server socket on a mac os x 10.5.8.
The problem is that every time i try to bind the socket to the address it gives the following error "Address already in use". I know that it means there is another process using that port, but there isn't any. I tried restarting the computer, using a different mac, a sample online code from a tutorial, using different ports but no use.
I checked the ports using netstat, and it's not used. When I run the program, the netstat will give a result that my program is listening on that port but on the other hand, the program exits with the specified error.
Is there anything that i am missing?
I am using xcode, and the C code is used in an objecive-c program.
I appreciate any help,