+ Reply to Thread
Results 1 to 2 of 2

Thread: displaying open connections and ports

  1. #1
    Junior Member
    Join Date
    Feb 2012
    Posts
    3

    displaying open connections and ports

    I`d like to monitor my connections and open ports , i tried netstat command , but i didn`t understand the output , is there another way to show that ?

  2. #2
    Junior Member
    Join Date
    Jan 2012
    Posts
    41
    There are penalty of software that does that , but i`ll explain the netstat to you as you forgot to add a little character .

    A) To monitor the open ports and connections on normal mode use : [netstat] ,the output will be like :
    Code:
    Active Connections
    
      Proto  Local Address          Foreign Address        State
      TCP    127.0.0.1:895          BOSS-PC:52125          ESTABLISHED
      TCP    127.0.0.1:12080        BOSS-PC:53326          ESTABLISHED
      TCP    127.0.0.1:12080        BOSS-PC:53375          ESTABLISHED
      TCP    127.0.0.1:52125        BOSS-PC:895            ESTABLISHED
      TCP    127.0.0.1:52391        BOSS-PC:52392          ESTABLISHED
      TCP    127.0.0.1:52392        BOSS-PC:52391          ESTABLISHED
      TCP    127.0.0.1:52396        BOSS-PC:52397          ESTABLISHED
      TCP    127.0.0.1:52397        BOSS-PC:52396          ESTABLISHED
      TCP    127.0.0.1:52437        BOSS-PC:52438          ESTABLISHED
      TCP    127.0.0.1:52438        BOSS-PC:52437          ESTABLISHED
      TCP    127.0.0.1:53326        BOSS-PC:12080          ESTABLISHED
      TCP    127.0.0.1:53375        BOSS-PC:12080          ESTABLISHED
      TCP    192.168.1.101:2869     BOSS-PC:53378          ESTABLISHED
      TCP    192.168.1.101:52402    cs204p2:5050           ESTABLISHED
      TCP    192.168.1.101:52439    sip111-p3:5050         ESTABLISHED
      TCP    192.168.1.101:53243    65.55.223.21:40001     ESTABLISHED
      TCP    192.168.1.101:53248    213.146.189.201:12350  ESTABLISHED
      TCP    192.168.1.101:53259    host-41-196-189-214:41170  ESTABLISHED
      TCP    192.168.1.101:53335    p3nlhg194c1194:http    LAST_ACK
      TCP    192.168.1.101:53336    p3nlhg194c1194:http    LAST_ACK
      TCP    192.168.1.101:53338    p3nlhg194c1194:http    LAST_ACK
      TCP    192.168.1.101:53339    p3nlhg194c1194:http    LAST_ACK
      TCP    192.168.1.101:53363    8ta-151-82-07:26461    ESTABLISHED
      TCP    192.168.1.101:53376    ec2-174-129-12-136:http  ESTABLISHED
      TCP    192.168.1.101:53377    p3nlhg194c1194:http    CLOSE_WAIT
      TCP    192.168.1.101:53378    BOSS-PC:icslap         ESTABLISHED
    Quite not understandable right ? , to make it more sense hence you do not know what these ips are , then use command : [netstat -f] ,the output will be like :
    Code:
    Active Connections 
    
      Proto  Local Address          Foreign Address        State
      TCP    127.0.0.1:895          BOSS-PC:52125          ESTABLISHED
      TCP    127.0.0.1:12080        BOSS-PC:53326          ESTABLISHED
      TCP    127.0.0.1:12080        BOSS-PC:53464          ESTABLISHED
      TCP    127.0.0.1:12080        BOSS-PC:53466          ESTABLISHED
      TCP    127.0.0.1:12080        BOSS-PC:53472          TIME_WAIT
      TCP    127.0.0.1:12080        BOSS-PC:53478          ESTABLISHED
      TCP    192.168.1.101:53546    www.ebay.com:http      ESTABLISHED
      TCP    192.168.1.101:53548    www.google.com:http      ESTABLISHED
      TCP    192.168.1.101:53550    www.codeexperts.com:http      ESTABLISHED
    Started to make sense right ?
    When you use command : netstat -f , it converts the ips to domain names that you can understand .

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts