Last active
August 29, 2015 14:20
-
-
Save jineshpaloor/1b740fe0aef912867116 to your computer and use it in GitHub Desktop.
checking open port on server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# I am trying from the server 54.85.216.40 | |
# Index Server | |
# ========= | |
root@ip-10-0-0-11:/home/ubuntu# telnet -d 54.169.89.119 27017 | |
Trying 54.169.89.119... | |
telnet: Unable to connect to remote host: Connection timed out | |
# from billing server: | |
# ============== | |
root@ip-172-31-3-1:/home/web/ecomm.prtouch.com/ecomexpress# telnet 172.31.4.7 27017 | |
Trying 172.31.4.7... | |
telnet: Unable to connect to remote host: Connection timed out | |
# When I do netmap to find open ports in a system. I get following. | |
root@ip-172-31-4-7:/home/web/ecomm.prtouch.com/ecomexpress# nmap -sT -O localhost | |
Starting Nmap 5.21 ( http://nmap.org ) at 2015-04-13 14:02 IST | |
Nmap scan report for localhost (127.0.0.1) | |
Host is up (0.000012s latency). | |
Not shown: 996 closed ports | |
PORT STATE SERVICE | |
22/tcp open ssh | |
25/tcp open smtp | |
80/tcp open http | |
3306/tcp open mysql | |
No exact OS matches for host (If you know what OS is running on it, see http://nmap.org/submit/ ). | |
TCP/IP fingerprint: | |
Network Distance: 0 hops | |
OS detection performed. Please report any incorrect results at http://nmap.org/submit/ . | |
Nmap done: 1 IP address (1 host up) scanned in 11.59 seconds |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment