I want to bind a server to port 1023. If I specify any free port > 1007, I have a "address already in use" error, but it works for ports <= 1007. Working as root on Debian 7.8...
Any idea??
Thanks in advance
I want to bind a server to port 1023. If I specify any free port > 1007, I have a "address already in use" error, but it works for ports <= 1007. Working as root on Debian 7.8...
Any idea??
Thanks in advance
Ports below 1024 are considered system ports and require supervisor privileges to use. To avoid a port conflict you should use a non reserved port above 1024.
To see if there is a service already using the port address, perform the following command:
netstat -lntu
https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers#Well-known_ports
OK I found it, a process was actually using all these ports but not in a daemon way (not LISTENing). Not really clean from the developer :(
Thanks for your help