Sign in to follow this  
Followers 0
hm2k

Func _GetIP() issues and improvements

7 posts in this topic

#1 ·  Posted (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 by hm2k

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

http://www.autoitscript.com/trac/autoit/ticket/971

First 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 by hm2k

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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_Technologies

Back 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.

Share this post


Link to post
Share on other sites

Share this post


Link to post
Share on other sites

Updated the first post and attached latest version.

The new version now uses _INetGetSource() instead of InetGet(), no temp file.

Please re-review.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0