Other Software > Developer's Corner
Programatically determining your IP Address...
lanux128:
works for me too.. i checked the external IP address with eToolz and they matched!. :up:
wreckedcarzz:
Works well here :)
Question: Would it be possible to have it give your your IP when the form loads, instead of having to click the button? I could definitely use this program for when I host game servers behind my router, and having it show up automatically is just that much more convenient.
cthorpe:
k, here is a test run... This application should grab the source from http://checkip.dyndns.org/ and use a simple string manipulation to find your external IP address... Please post and let me know the results.
-Codebyte (June 30, 2008, 12:02 AM)
--- End quote ---
Worked for me as well.
Codebyte:
Wreckedcarzz, Im working on an executable for you right now... Just woke up lol! Is there anything else you would like added to it?
wr975:
Now, only left to do is figure out how to grab a web page's source code programatically.... Once I get this done, ill upload a sample executable to see if the String routine will work correctly with different IP's...
-Codebyte (June 27, 2008, 08:20 PM)
--- End quote ---
Try this URL: http://www.netikus.net/show_ip.html
Just the IP. Nothing more (no source code to search).
Autohotkey example:
--- ---UrlDownloadToFile,http://www.netikus.net/show_ip.html,%a_temp%\myip.txt
Fileread,IP,%a_temp%\myip.txt
msgbox,your IP is %ip%
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version