Results 1 to 2 of 2
is there any command to check whether internet connection is available at a certain port or not??...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 01-31-2011 #1
- Join Date
- Jul 2010
is there any command to check whether internet connection is available at a certain port or not??
- 02-01-2011 #2
- Join Date
- Nov 2010
You could try using "nmap" . First you need to install it by typing either "yum install nmap" or "apt-get install nmap" depending if you are running red hat based or debian based distro.
Then type " nmap -v -sT 127.0.0.1" where 127.0.0.1 is an ip address of your choice. My output is as below.
Starting Nmap 5.00 ( http://nmap.org ) at 2011-02-01 14:33 GMT NSE: Loaded 0 scripts for scanning. Initiating Connect Scan at 14:33 Scanning localhost (127.0.0.1) [1000 ports] Discovered open port 80/tcp on 127.0.0.1 Discovered open port 631/tcp on 127.0.0.1 Completed Connect Scan at 14:33, 0.07s elapsed (1000 total ports) Host localhost (127.0.0.1) is up (0.00066s latency). Interesting ports on localhost (127.0.0.1): Not shown: 998 closed ports PORT STATE SERVICE 80/tcp open http 631/tcp open ipp Read data files from: /usr/share/nmap Nmap done: 1 IP address (1 host up) scanned in 0.30 seconds Raw packets sent: 0 (0B) | Rcvd: 0 (0B)