AutoHotkey Community

It is currently May 24th, 2012, 1:53 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: March 5th, 2008, 5:07 pm 
Offline

Joined: April 17th, 2007, 1:37 pm
Posts: 761
Location: Florida
This link will return source code that is simply your external IP address:
http://whatismyip.com/automation/n09230945.asp

WhatIsMyIP.com wrote:
Some automators are hitting our home page really hard eating up a lot of bandwidth and possibly causing the site to be slow for other visitors. So we've created an automation page. This file should make it cleaner for you and easier on our bandwidth. Even though it'll be lighter on the bandwidth, please ONLY hit this page at a reasonable pace. Some of you are hitting the site at a pace of 2 times per second...that's WAY TOO often. We prefer you only hit it once per every 5 minutes, but if you need it more often than that, contact us and we can work something out.

Source

_________________
[Join IRC!]
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 5th, 2008, 5:56 pm 
Offline

Joined: February 18th, 2008, 8:26 pm
Posts: 442
There are many services just like this such as dyndns API and geoip or hostip's geo tracking info, not to mention STUN for NAT configurations and other network procols. Most routers also display your external IP address, the advantage of using this is no limitations on refresh frequency and no bandwidth consumption beyond LAN. The following code works correctly on my Netgear DG834G official firmware:

Code:
ip_dg834(user = "admin", pass = "pass") {
   file = %A_Temp%\t%A_Now%
   UrlDownloadToFile, http://%user%:%pass%@192.168.0.1/setup.cgi?next_file=s_status.htm, %file%
   FileRead, ip, %file%
   FileDelete, %file%
   StringMid, ip, ip, pos := InStr(ip, "<b>IP Address"), InStr(ip, "</tr>", "", pos) - pos
   StringGetPos, pos, ip, >, R2
   Return, SubStr(ip, pos += 2, InStr(ip, "<", "", pos) - pos)
}


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 5th, 2008, 8:00 pm 
Offline

Joined: February 5th, 2007, 12:19 pm
Posts: 192
Location: Osnabrück, Germany
You can use also this if there is only one ip on the site:
Code:
    FoundPos := RegExMatch (ip,"([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})", ip)
    msgbox, %ip%


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google Feedfetcher and 2 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group