Results 1 to 6 of 6

Thread: [resolved, sort of] Retreiving connection status

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2002
    Location
    Oregon
    Posts
    64

    [resolved, sort of] Retreiving connection status

    How can I get a list of open TCP conections, similar to the output of netstat -a? I've been digging through the winsock documentation with no luck.
    Last edited by Arawn; Nov 16th, 2002 at 07:51 AM.

  2. #2
    Frenzied Member
    Join Date
    Jul 2002
    Posts
    1,370
    This is a lot more than you think.

    Attached is Mark Russinovich's freeware code for netstatp which does whay you want.
    Attached Files Attached Files

  3. #3

    Thread Starter
    Lively Member
    Join Date
    May 2002
    Location
    Oregon
    Posts
    64
    Perfect! If only my gf wasn't beta testing Sims Online, I'd be able to check it out more....

  4. #4

    Thread Starter
    Lively Member
    Join Date
    May 2002
    Location
    Oregon
    Posts
    64
    Ok, one last question on this subject. Where would I look to find out what application/process is responsible for the port? This seems to be highly guarded information

  5. #5
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    You mean which program is *actually* using the port, or what program has been allocated that port on the list? This is my /etc/services file:
    Attached Files Attached Files
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  6. #6

    Thread Starter
    Lively Member
    Join Date
    May 2002
    Location
    Oregon
    Posts
    64
    I'm going to have to say what program is actually using it. I'd like to narrow it down to an .exe actually.. Like alot of firewalls do, I just want to know what's open and 'who' is responsible. the GetTcpTable() function in the iphlpapi.dll is really usefull, but I just wanted the extra step. Under XP it's possible through the same DLL, but I use mostly 2k..

Posting Permissions

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



Click Here to Expand Forum to Full Width