mclynes Posted February 15, 2009 Share Posted February 15, 2009 How do i get my local machine IP Address with autoit? Link to comment Share on other sites More sharing options...
Manjish Posted February 15, 2009 Share Posted February 15, 2009 @IPAddress1 IP address of first network adapter. Tends to return 127.0.0.1 on some computers. @IPAddress2 IP address of second network adapter. Returns 0.0.0.0 if not applicable. @IPAddress3 IP address of third network adapter. Returns 0.0.0.0 if not applicable. @IPAddress4 IP address of fourth network adapter. Returns 0.0.0.0 if not applicable. UritOR 1 [font="Garamond"]Manjish Naik[/font]Engineer, Global Services - QPSHoneywell Automation India LimitedE-mail - Manjish.Naik@honeywell.com Link to comment Share on other sites More sharing options...
ReaImDown Posted February 15, 2009 Share Posted February 15, 2009 (edited) @IPAddress1 IP address of first network adapter. Tends to return 127.0.0.1 on some computers. @IPAddress2 IP address of second network adapter. Returns 0.0.0.0 if not applicable. @IPAddress3 IP address of third network adapter. Returns 0.0.0.0 if not applicable. @IPAddress4 IP address of fourth network adapter. Returns 0.0.0.0 if not applicable._getip()examplemsgbox(0,"My Ip Address", "Your ip address is... " & _GetIp()) Edited February 15, 2009 by ReaImDown [u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u] Link to comment Share on other sites More sharing options...
exodius Posted February 15, 2009 Share Posted February 15, 2009 _getip()examplemsgbox(0,"My Ip Address", "Your ip address is... " & _GetIp())But if you use _GetIP, don't forget to #include <INet.au3> Link to comment Share on other sites More sharing options...
ReaImDown Posted February 15, 2009 Share Posted February 15, 2009 But if you use _GetIP, don't forget to #include <INet.au3>my bad lol, again...at work... or (to make your script smaller)just copy the function and paste it in your script...Func _GetIp() [u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u] Link to comment Share on other sites More sharing options...
ZebulonSmith Posted January 6, 2014 Share Posted January 6, 2014 (edited) my bad lol, again...at work... or (to make your script smaller) just copy the function and paste it in your script... Func _GetIp() This is an old thread, but it's also one of the first Google results when searching for "autoit get IP," so I thought I'd chime in. _GetIP() will return the external WAN IP address of a device. For the local IP, follow Manish's advice. Edited January 6, 2014 by ZebulonSmith FlashpointBlack and jaberwacky 2 Link to comment Share on other sites More sharing options...
UritOR Posted October 13, 2015 Share Posted October 13, 2015 ManjishThank you. 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