67

In our company, I want to check if users are running web servers on port 80 and 8080.

I downloaded nmap and ran this command:

nmap -p 80,8080 192.168.1.0-255

I got a list of IPs and tried to access them in my browser (EG: 192.168.1.1:8080) but wasn't able to connect.

Is my nmap command correct?

Thanks!

EDIT:

Here's the response:

Host is up (0.050s latency).
PORT     STATE SERVICE
80/tcp   open  http
8080/tcp open  http-proxy
Tobu
  • 4,367
  • 1
  • 23
  • 31
Ian
  • 881
  • 2
  • 7
  • 10

1 Answers1

63

Your NMAP command is fine. It's the service you're trying to connect to that is the "problem".

You can find that a "server" has an open port on 80 or 8080 but still not be able to connect it. For instance, I have about three dozen polycom phones that are accessible at port 8080 but they have bum config files. When someone tries to access them at that port they aren't able to connect.

And it may depend on how you're trying to connect. Even though its port 8080 maybe you aren't supposed to use a browser to connect to it.(I know - crazy idea).

Find out what type of device you're trying to connect to using this (you'll need sudo or root):

nmap -sS -O -p80,8080 192.168.1.0/24
Patrick R
  • 2,925
  • 1
  • 18
  • 27