GNOME Bugzilla – Bug 547598
gnome-nettools port scan gives different results every time it is run
Last modified: 2012-01-03 04:25:01 UTC
this report has been filed here: https://bugs.edge.launchpad.net/ubuntu/+source/gnome-nettool/+bug/257042 "When running the port scan tool I get different results every time I run it on localhost." "it seems to find random ports that are not open. I just tried it again and ports 40940 and 50530 showed up this time with niether of the ports showing up in netstat" "tried the same with nmap and get the right results with gnome-nettool the latest ports are random" screenshot: http://launchpadlibrarian.net/16710468/Screenshot.png Thanks,
Well, sometimes are not the latest port that looks random. Anyway, I also can reproduce it.
Should we just modify this to use nmap? nmap is much much faster and gives accurate results. I can scan ports 1-65535 in 0.57 seconds with nmap on my system. Using gnome-nettools's algorithm takes much much longer, up to 5 seconds, and it's also not correct. I'd be happy to switch it with a patch depending on how everyone else feels about this.
Indeed, patches are welcomed.
This should be fixed now that we switched to nmap instead of using local sockets.