Finding process IP connections

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Evolution445
    New Member
    • Jul 2007
    • 63

    #1

    Finding process IP connections

    Im making a small servermanager for a game. I have a list of players with their IP's that are currently connected to the the whole game. I want to find out what IP's are connected to a certain process so I can match these with the list of players and then add the players that are in the server hosted by this servermanager, into the playerlist.

    Adding players to that list and looking them up for a matching IP already works. I just cant figure out how to find all the IP's that are connected to a certain process.

    If anyone has a tip or even a small code sample it'd be greatly appreciated.

    Thanks in advance,
    Evolution445
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    I think using the WMI calls, you can find out the socket connections a process has open, then you would jsut look to see the IP address of those.

    Comment

    Working...