Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

3 Answers

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
add comment

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 www.google.com -p 80 -c 4
etc.

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

share|improve this answer
add comment
 telnet host port

or

 nmap host -p portnum

or

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.