Few things to check
netstat -a | grep 8005 netstat -a | grep 8005 See if something else uses port 8005
Run as su to see if there is a resolution problem
sudo mono YourProgram.exe
I didn’t look very well at the library you are using, but if it uses ICMP or Raw Sockets, it should run as root.
Another thing to watch out for is checking to see if your DNS resolution matches. Standby sandboxes usually only complain about it, but I saw strange things happen and you did not give us a lot of information to continue.
If this is a root problem, and not that another program is using port 8005, you can leave using setcap in a monobyne, so you do not need to run it as root.
Run this as root: setcap cap_net_raw=iep /path/to/mono
source share