Jump to content

Check connection to an IP?


fi3ldy
 Share

Recommended Posts

I have a question of which I arn't even close on the knowledge to be able to work out for myself, so any help on this would be appreciated.

I'm creating an application which will work with an online game, basically I want to be able to check if the user running my application is connected to a certain server IP. I was wondering how I would check if the computer is connected to a certain server IP address?

Thanks, and any help will be greatly appreciated!

Edited by fi3ldy
Link to comment
Share on other sites

I got you covered.

There is an AutoIT translation of netstat here (posted by giltree):

#313714

I have tested it and it's really good. It basically returns a 2 dimensional array which you can loop through.

So do this:

#include <array.au3>
_ArrayDisplay(_GetTCPtable())

$table = _GetTCPtable()
For $X = 1 to $table[0][0]
    If $table[$X][3] = "24.56.67.78" Then
        MsgBox(0,"","Match found")
        ExitLoop
    EndIf
Next
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...