hm2k Posted May 21, 2009 Share Posted May 21, 2009 (edited) The current _GetIP() function found in Inet.au3 uses checkip.dyndns.org and whatismyip.com You will find that the "whatismyip.com" lookup will always fail. The _GetIPx() function I have provided proves that it never works. I have also provided an improved function called _GetIP2(). It makes of a more reliable ip lookup service provided by "akamai.com" by default. It also has the option to specify various other sources. Examples are provided. - HM2K_GetIPtest.au3 Edited May 27, 2009 by hm2k Link to comment Share on other sites More sharing options...
hm2k Posted May 21, 2009 Author Share Posted May 21, 2009 (edited) http://www.autoitscript.com/trac/autoit/ticket/971First I got this error:Warning: No permission to change ticket fields. Then I got this error:Submission rejected as potential spam (Maximum number of posts per hour for this IP exceeded)---So I decided to post my reply here:The one in 3.3.0 is not OK. I do have the official version of Inet.au3, it DOES NOT contain any special "scanning" for the failing one, it simply fails.Of course it's an improvement. It's way more flexible and uses a way more reliable source by default.As I said, the current version only works because "checkip.dyndns.org" works. If that failed, then the backup "whatismyip.com" would not work either, so it's pointless even having it.The method i've provided is a much flexible and reliable way of doing it.I must say I'm rather disappointed with the ignorance you're displaying. Just because it already works, doesn't mean it can't be improved. In fact, that's the whole point of an improvement.Sure, it already works, but this is an improvement.Please reopen this ticket, I don't appear to have permissions. Edited May 21, 2009 by hm2k Link to comment Share on other sites More sharing options...
ProgAndy Posted May 21, 2009 Share Posted May 21, 2009 I think, if you change it, use the new InetRead from Beta. This would be another improvement (no tempfile anymore).Btw: why is http://whatismyip.akamai.com/ more reliable? I even don't know who created it... *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes Link to comment Share on other sites More sharing options...
hm2k Posted May 21, 2009 Author Share Posted May 21, 2009 Using InetRead sounds neat, but as it doesn't appear in my version, i've not implemented it in the example. Although usage would probably be appropriate in future releases.http://en.wikipedia.org/wiki/Akamai_TechnologiesBack in 1999 Microsoft began using them for content delivery and have done ever since.Now they are a NASDAQ-100 company, possibly the biggest content delivery company in the world...So, I think you'll agree, fairly reliable. Link to comment Share on other sites More sharing options...
BrettF Posted May 22, 2009 Share Posted May 22, 2009 Please don't post the topic again.See link to the last thread on the same thing!http://www.autoitscript.com/forum/index.ph...c=95409&hl=If you must bump it, do it once in a 24 hour period (once, 24 hours after the last post).Cheers,Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Developers Jos Posted May 22, 2009 Developers Share Posted May 22, 2009 (edited) Topics merged. Edited May 22, 2009 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
hm2k Posted May 27, 2009 Author Share Posted May 27, 2009 Updated the first post and attached latest version. The new version now uses _INetGetSource() instead of InetGet(), no temp file. Please re-review. 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