natetron66 Posted April 23, 2009 Share Posted April 23, 2009 My inventory script uses @IPAddress1 to get the users IP address. For several of the clients it is grabbing the wrireless ip address. Is there a way to always return the primary local ethernet ip? Link to comment Share on other sites More sharing options...
AlmarM Posted April 23, 2009 Share Posted April 23, 2009 You have:@IPAddress1@IPAddress2@IPAddress3@IPAddress4_GetIP()AlmarM Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
natetron66 Posted April 23, 2009 Author Share Posted April 23, 2009 You have:@IPAddress1@IPAddress2@IPAddress3@IPAddress4_GetIP()AlmarMBut @ipaddress1 works great on 400 pcs, theres about 20 though that return the wireless address. I didn't know if there was a function to report back the actual lan ip address and not the wifi ip address. Link to comment Share on other sites More sharing options...
bogQ Posted April 23, 2009 Share Posted April 23, 2009 (edited) But @ipaddress1 works great on 400 pcs, theres about 20 though that return the wireless address. I didn't know if there was a function to report back the actual lan ip address and not the wifi ip address. probably im wrong, (or im not) If Not StringInStr(@IPAddress1,"192.168") Then MsgBox(0,"",@IPAddress1) Else MsgBox(0,"",@IPAddress2) EndIf my wireless card is in the first slot of the MB and it is my @IPAddress1 with 192.168.0.1 my network card is in 4 slot of the MB and it is @IPAddress2 so try to filter simular ip adress so that y can determen whats the IP of your lan ip and whats the wireless adapter the other way it to look at this post from herewasplato it topic Enable/Disable Wireless Card or try to finde other solution of Forum Search Edit: tupo Edited April 23, 2009 by bogQ TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. 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