Skip to content

Instantly share code, notes, and snippets.

@petrkohut
Last active March 24, 2017 16:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save petrkohut/52fb67153eec8ab615c097181fbecd97 to your computer and use it in GitHub Desktop.
Save petrkohut/52fb67153eec8ab615c097181fbecd97 to your computer and use it in GitHub Desktop.
Test TCP/UDP which port is open

TCP

sudo telnet 10.10.0.195 9300

UDP

sudo nmap -p 9300 -sU -P0 10.10.0.195

Open ports

netstat -a | egrep 'Proto|LISTEN'
netstat -ntlp | grep LISTEN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment