Computer Hope
Internet & Networking => Networking => Topic started by: mateenmohd on November 15, 2007, 07:06:54 AM
-
How to find Server Port ?
what is the command / step?
ipconfig/all display all ip information of server.
by which command we can find the Server Port ?
normally server port running on 8080
how can confirmed that server port running on port 8080 ?
Thanks and regards
Mateen
-
netstat -a -n
will list all currently open ports. If your server application is running the port it uses should be listed here.
-
And if for some odd reason that doesn't work, you can scan the server either remotely or locally with Nmap.
-Stephen
-
Thanks for response.
How can list the server port ? what is the command / steps ?
How can scan the server with Nmap ? Nmap is command ?
I run this command at rum prompt, it is not working
regards
Mateen
-
Are you on Linux or windows? If you let me know I can give you detailed install and run instructions for either OS.
However, if you have already installed Nmap, use this command:
nmap -sS -P0 -O 10.1.1.1
Replace 10.1.1.1 with the server IP. This will give you a list of all the open ports, as well as the Operating System on the Server, and this is the quickest but effective way of doing it. The -P0 is a zero, not the letter 'O', whereas the -O before the 10.1.1.1 is a letter in the alphabet. This command can be run either from the server, or from a remote host.
-Stephen
-
Thanks for you respnse.
Our server is Window 2003 R2, and client computer are window vista.
regards
Mateen
-
Ok, you will need to download and install
http://download.insecure.org/nmap/dist/nmap-4.23RC1-setup.exe
Then it should install a shortcut to your desktop. Then it's a matter of double clicking on that shortcut, and either choosing a pre-defined scan, or making your own with the options I previously stated. Any trouble, give me a yell (by the way, nmap is a lot faster on the command line in Linux, but this still works). This nmap install file will also install Winpcap, which is needed for this and packet sniffing.
-Stephen