RE: How to tell what is binding a port?
On 13-Oct-99 Brian Servis wrote:
> Something is binding to port 139 which is what samba is trying to use
> and thus smbd is failing to start. How can I track down what is bound
> to the port? /etc/services points to netbios-ssn service which is what
> smbd handles but I am getting the following errors in the smb logs:
> [1999/10/13 11:39:42, 0] lib/util_sock.c:open_socket_in(671)
> bind failed on port 139 socket_addr=0.0.0.0 (Address already in use)
> Thanks for any pointers,
What about 'fuser 139/tcp' or 'fuser 139/udp' ? That will give you the PID of
the process using the port.