Nmap Development mailing list archives

Ncat: socket bind error on Mac OS X


From: Dirk Loss <lists () dirk-loss de>
Date: Sun, 27 Jul 2008 13:14:40 +0200

Hi,

on Mac OS X 10.5.4 (Intel) Ncat dies with the following error when I try 
to put it into listening mode:

$ ncat -l 22222
bind: Invalid argument

Running Ncat as root, switching to UDP or disabling IPv6 in my system 
preferences did not help. I verified that there is no other process 
listing on my local TCP port 22222.

Apparently the bind() call in sys_wrap.c returns -1 and errno = 22 
(EINVAL). According to the man page [1], this means that either the 
"socket is already bound to an address and the protocol does not support 
binding to a new address" or the "socket may have been shut down."

In client mode Ncat works fine.

Any ideas what I am doing wrong or how I can help debugging?

Regards
Dirk

[1] 
http://developer.apple.com/documentation/Darwin/Reference/ManPages/man2/bind.2.html

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org


Current thread: