LimeSeed Posted September 5, 2008 Posted September 5, 2008 when i use $ip = @ipaddress1, it returns 192.168.1.150 which is my internal subnet address, how do i get it to return my external ip which is somethin like 69.118.105.186 (thats what it used to be)?? global $warming = true
anixon Posted September 5, 2008 Posted September 5, 2008 (edited) when i use $ip = @ipaddress1, it returns 192.168.1.150 which is my internal subnet address, how do i get it to return my external ip which is somethin like 69.118.105.186 (thats what it used to be)??You could do this:Global $ip = "69.118.105.186"Ant..Edit @ipaddress1 returns the address of the first network adaptor. $ip = @ipaddress2 the second $ip = @ipaddress3 the third and so onAnt.. Edited September 5, 2008 by anixon
DW1 Posted September 5, 2008 Posted September 5, 2008 #include<Inet.au3> MsgBox(0, "IP info", "Local IP = " & @IPAddress1 & @CRLF & "External IP = " & _GetIP() ) AutoIt3 Online Help
LimeSeed Posted September 5, 2008 Author Posted September 5, 2008 #include<Inet.au3> MsgBox(0, "IP info", "Local IP = " & @IPAddress1 & @CRLF & "External IP = " & _GetIP() ) thanks ;-) global $warming = true
trancexx Posted September 5, 2008 Posted September 5, 2008 Speaking of _GetIP()...It's probably only a matter of time before this function starts returning wrong (nothing). http://www.whatismyip.com no longer supports this kind of automation, so basically it's all up to http://checkip.dyndns.orgwhatismyip.com is suggesting www.whatismyip.com/automation/n09230945.asp but that's having caching issue'Inet.au3' needs updating ♡♡♡ . eMyvnE
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