Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Recently I've gotten a lot of new servers set up by our networking team for me to develop/test with. The problem is the firewall access I have to the servers is inconsistent, so I need to figure out what ports on what servers I have access to.

Is there an existing tool that could do this?

For example:

  • Connect to Server A over port 80 and report success/failure
  • Connect to Server A over port 3389 and report success/failure
  • Connect to Server A over port 1433 and report success/failure

Ideally I could give it a list of servers and ports to check, and it could give me a list of what failed so I can request the ports to be opened.

share|improve this question

nmap is the thing you are looking for.

If it is necessary for you to this over Windows, then there is Windows version of the program called zenmap. You'll additionally need to install winpcap for (advanced) port probing with it.

If Linux, a simple bash script would do or just outputing it to file, depends on how will you do it.

share|improve this answer

Easiest way I can think of is to create a .bat file with a list of paping commands. (As ping does not support port numbers)

paping server1 -p 80 -c 4
paping server1 -p 3389 -c 4  
paping -p 80 -c 4

By looking at the results, you can see which servers you have access to at the moment.

share|improve this answer
 telnet host port


 nmap host -p portnum


 nmap host -p 1-65535
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .