Skip to content

Instantly share code, notes, and snippets.

@chayandatta
Created January 11, 2019 03:27
Show Gist options
  • Save chayandatta/addbd62b2eed0ec493eecd256c6c847c to your computer and use it in GitHub Desktop.
Save chayandatta/addbd62b2eed0ec493eecd256c6c847c to your computer and use it in GitHub Desktop.

Test a port using your browser In your browser address bar: http://portquiz.net:XXXX

Examples: http://portquiz.net:8080 http://portquiz.net:8 http://portquiz.net:666

Test a port using a command

$ telnet portquiz.net 27017

Trying ...

Connected to portquiz.net.

Escape character is '^]'.

$ nc -v portquiz.net 27017

Connection to portquiz.net 27017 port [tcp/daytime] succeeded!

$ curl portquiz.net:27017

Port 27017 test successful!

Your IP: XXX.XXX.XXX.XXX

$ wget -qO- portquiz.net:27017

Port 27017 test successful!

Your IP: XXX.XXX.XXX.XXX

For Windows PowerShell users

PS C:> Test-NetConnection -InformationLevel detailed -ComputerName portquiz.net -Port 27017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment