I can't run Nmap from my droplet.

I’m trying to test my home network by portscanning from my droplet but everytime I run Nmap I get this error:

Couldn't open a raw socket. Error: Permission denied (13)

I’m running it with sudo (as root…) but it always says permission denied. Thanks.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

This is a dumb issue with how snap works. The fix is running

snap connect nmap:network-control

after installing nmap.

Hi @puggolouie,

I’ve actually never experienced this on any linux machine so I had to do some research. This seems to be experienced when you are using nmap on Windows.

There are some bugs opened about it here - BUG

Anyway, can you confirm how exactly are you trying to scan your local environment from your droplet?

Regards, KDSys

Hello, @puggolouie

Could you please let me know what OS you’re using? There was a bug in a specific version and I would like to check this. Also what happens when you run the scan locally on your droplet?

sudo netstat -plunt

Let me know how it goes.

Regards, Alex