Sign in to follow this  
Followers 0
fi3ldy

Check connection to an IP?

4 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Thanks alot buddy! I feel an incredible urge to kiss you <_<!

Share this post


Link to post
Share on other sites

Thanks alot buddy! I feel an incredible urge to kiss you <_< !

I hope you're a chick. Don't go Brokeback Mountain on me!

Share this post


Link to post
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
Sign in to follow this  
Followers 0