fi3ldy Posted October 23, 2007 Share Posted October 23, 2007 (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 October 23, 2007 by fi3ldy Link to comment Share on other sites More sharing options...
weaponx Posted October 23, 2007 Share Posted October 23, 2007 I got you covered.There is an AutoIT translation of netstat here (posted by giltree):#313714I 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 More sharing options...
fi3ldy Posted October 23, 2007 Author Share Posted October 23, 2007 Thanks alot buddy! I feel an incredible urge to kiss you ! Link to comment Share on other sites More sharing options...
weaponx Posted October 23, 2007 Share Posted October 23, 2007 Thanks alot buddy! I feel an incredible urge to kiss you !I hope you're a chick. Don't go Brokeback Mountain on me! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now