1. Welcome! Please take a few seconds to create your free account to post threads, make some friends, remove a few ads while surfing and much more. ClutchFans has been bringing fans together to talk Houston Sports since 1996. Join us!

How can one determine the port(s) used by an application?

Discussion in 'BBS Hangout' started by Relativist, Aug 10, 2002.

Tags:
  1. Relativist

    Relativist Member

    Joined:
    Jul 26, 2000
    Messages:
    3,517
    Likes Received:
    241
    First off, I want to thank Vengeance and Sonny for their assistance. Because I wasn't completely sure what I was doing and didn't want to screw up, I visited Lightspeed and got them to clean install '98 SE on my previously XP pc. I came away feeling confident that in the future, I can do it myself. XP is a better OS, but it's a long story why I wanted to change it.

    So I have this application which records stuff and sends live streaming video over the 'net. It works fine, but it can't handle working behind a router. As far as I know, the manual doesn't mention anything about what port settings the application uses. If I can figure out what ports it uses, I figure I could get it to work behind a router. The problem is, how do I do this? Suggestions?

    Vengeance, sorry about your cat. At least now Fluffy's in a better place.
     
  2. Achebe

    Achebe Member

    Joined:
    Oct 26, 1999
    Messages:
    6,237
    Likes Received:
    3
    I hear that Jeff and his mac bunch just poor that Clocktower Tawny all over their machines, and everything works fine.
     
  3. BobFinn*

    BobFinn* Member

    Joined:
    Feb 10, 2000
    Messages:
    11,438
    Likes Received:
    6
    Go to: settings, control panel, system and click on the tab- device manager. Look for your program click on it and it will tell you the details.
     
  4. Rockets2K

    Rockets2K Clutch Crew

    Joined:
    Mar 22, 2000
    Messages:
    18,050
    Likes Received:
    1,271
    If I read you correctly, You need to know which (network) ports the app uses...so you can configure the router to allow the app's packets to pass??
    If so..the quick answer is to get a port scanner to monitor your ports while the app is active..edit: I found what should do the trick...here
    hope it helps
    If not...sorry for wasting ur time...
    carry on. :)[
     
    #4 Rockets2K, Aug 11, 2002
    Last edited: Aug 11, 2002
  5. movement

    movement Member

    Joined:
    Aug 9, 2001
    Messages:
    212
    Likes Received:
    0
    start > run > cmd > netstat -an
    you may need to type netstat -an |more

    I have a music sharing program running, my netstat shows:

    C:\>netstat -an

    Active Connections

    Proto Local Address Foreign Address State
    TCP 0.0.0.0:135 0.0.0.0:0 LISTENING
    TCP 0.0.0.0:445 0.0.0.0:0 LISTENING
    TCP 0.0.0.0:1025 0.0.0.0:0 LISTENING
    TCP 0.0.0.0:1026 0.0.0.0:0 LISTENING
    TCP 0.0.0.0:1027 0.0.0.0:0 LISTENING
    TCP 0.0.0.0:1036 0.0.0.0:0 LISTENING
    TCP 0.0.0.0:2070 0.0.0.0:0 LISTENING
    TCP 0.0.0.0:2072 0.0.0.0:0 LISTENING
    TCP 0.0.0.0:2086 0.0.0.0:0 LISTENING
    TCP 0.0.0.0:2087 0.0.0.0:0 LISTENING
    TCP 0.0.0.0:2116 0.0.0.0:0 LISTENING
    TCP 0.0.0.0:2118 0.0.0.0:0 LISTENING
    TCP 0.0.0.0:2120 0.0.0.0:0 LISTENING
    TCP 0.0.0.0:2121 0.0.0.0:0 LISTENING
    TCP 0.0.0.0:2122 0.0.0.0:0 LISTENING
    TCP 0.0.0.0:2123 0.0.0.0:0 LISTENING
    TCP 0.0.0.0:3132 0.0.0.0:0 LISTENING
    TCP 127.0.0.1:1032 0.0.0.0:0 LISTENING
    TCP 192.168.1.100:139 0.0.0.0:0 LISTENING
    TCP 192.168.1.100:1029 0.0.0.0:0 LISTENING
    TCP 192.168.1.100:1029 192.168.1.108:139 ESTABLISHED
    TCP 192.168.1.100:2072 213.193.0.44:80 CLOSE_WAIT
    TCP 192.168.1.100:2086 65.57.229.29:80 CLOSE_WAIT
    TCP 192.168.1.100:2087 65.57.229.29:80 CLOSE_WAIT
    TCP 192.168.1.100:2099 68.4.201.97:6346 TIME_WAIT
    TCP 192.168.1.100:2116 12.14.205.8:6346 FIN_WAIT_1
    TCP 192.168.1.100:2118 68.52.96.172:6346 ESTABLISHED
    TCP 192.168.1.100:2120 198.143.196.146:6347 SYN_SENT
    TCP 192.168.1.100:2121 24.112.179.238:6346 SYN_SENT
    TCP 192.168.1.100:2122 24.148.3.238:6346 SYN_SENT
    TCP 192.168.1.100:2123 217.162.143.47:6346 ESTABLISHED
    UDP 0.0.0.0:135 *:*
    UDP 0.0.0.0:445 *:*
    UDP 0.0.0.0:1031 *:*
    UDP 0.0.0.0:5467 *:*
    UDP 127.0.0.1:2077 *:*
    UDP 192.168.1.100:137 *:*
    UDP 192.168.1.100:138 *:*
    UDP 192.168.1.100:500 *:*

    edit: added the flags -an to netstat, "a" gives you more info and "n" turns off DNS lookup.
     
    #5 movement, Aug 11, 2002
    Last edited: Aug 11, 2002
  6. Ottomaton

    Ottomaton Member
    Supporting Member

    Joined:
    Feb 14, 2000
    Messages:
    19,201
    Likes Received:
    15,369
    Many programs use dynamically allocated ports. That is, they get the port assigned from a range at the time they execute. Most of these programs include some sort of 'fixed port mapping' for when the are behind a firewall in the preferences section.

    Also, here is a list of the standard TCP ports that are used by programs.

    Anyway, I'm betting that you either need to figure out what protocol your program uses, (for instance, video conferencing protocol H.323 uses a specific set of IP's), or you need to tell your program what ports to use.
     

Share This Page