Page 1 of 1

Yes, another one WAN IP.

Posted: December 11th, 2007, 2:05 am
by cosenodefi
Hi,

Only get the WAN IP Adress (nothing more, it's quite simple)
The module has an unique function. It gets the WAN IP Address
of the machine from this source:

http://www.whatismyip.com/automation/n09230945.asp

The maximum hit rate recommended on this web is 1 hit every 5 minutes. The plugin can't reach that rate and is
limited to 1 hit every 15 minutes (max), and has default rate of 1 hit per hour.

The plugin can simulate the UserAgent strings.

1 - 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322)',
2 - 'Mozilla/5.0 (X11; U; Linux i686 (x86_64); es-ES; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13',
3 - 'Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A538a Safari/419.3'

Any other numeric value, gets a random UserAgent.


(New) Syntax:

$dll(mywanip,1,<useragent>,)

If you want to test it, feel free to coment... but don't throw me to the wolves! (I'm only a two-day experienced plugin developer)
:wink:
UPDATE
(23-Mar-2008)
- New version (v1.201) Rewrite from scratch. Several minor fixes.
- Now, the plugin uses a config file to select the refresh query time, from 15min to 4hrs, default to 1 hr. Expressed in seconds.
- Added an 'About' function.
- Includes a example of config file and updated README.txt
(01-Apr-2008)
- New version (v1.221) Fixed a potential bug when internet
connection/selected URL isn't available when we're on LCDSmartie setup screen.
(16-Jul-2008)
- New option (v1.340). The plugin can write a log to track the change of the IP across the time. This option is selectable in the config fil (*.ini)
- Fake 'useragents' updated to FF3 and IE7.
(12-Aug-2008)
- Bug correction: Log was recreated in every write, and never append a new line. Fixed.
(15-Aug-2008)
- Bug fix: The last IP is now saved in the INI file for checking with actual one. If the actual one differs it's saved to the log.
(30-Sep-2008)
- Better handling of unknowm/unreadable IP.
- New fake 'user-agents', including the iPhone's one.
(17-Jun-2009)
- Bug Fix: Now TABs are parsed from the HTTP response to correct a misplaced string for the IP reading.
- Updated Firefox (to 3.0.11) fake user-agent string
(14-Feb-2011)
- New version (v1.5) with Major simplifications: Only one source of info.
- Deletion of redundant code.
- Update of the UserAgent strings.
(03-Jun-2011)
- Change of the URL for WAN IP. Now using DynDNS.