Server socket is not working
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
netcat (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: netcat
$ nc -l 1234 &
[1] 8934
$ nc localhost 1234
localhost [127.0.0.1] 1234 (?) : Connection refused
$ nc tamal-laptop 1234
tamal-laptop [127.0.1.1] 1234 (?) : Connection refused
$ nmap localhost
Starting Nmap 4.62 ( http://
Interesting ports on localhost (127.0.0.1):
Not shown: 1712 closed ports
PORT STATE SERVICE
80/tcp open http
631/tcp open ipp
5432/tcp open postgresql
Nmap done: 1 IP address (1 host up) scanned in 0.192 seconds
$ nmap tamal-laptop
Starting Nmap 4.62 ( http://
Interesting ports on tamal-laptop (127.0.1.1):
Not shown: 1714 closed ports
PORT STATE SERVICE
80/tcp open http
Nmap done: 1 IP address (1 host up) scanned in 0.190 seconds
You need 'nc -l -p 1234', as the manpage says.