Journal jawtheshark's Journal: Interesting: IP Address webservice 10
I needed my IP Address for a script and wanted to be router independent. I thought by myself: a little web service that just returns your IP address as text should exist. Scraping web pages didn't seem like an intelligent option, as layouts change. I didn't find anything, so I decided to go scraping anyway. Then I found this commend in the code of whatismyip.com:
<!--Please set your code to scrape your IP from www.whatismyip.com/automation/n09230945.asp For more info, please see our "Recommended Automation Practices" thread in the Forum.-->
Thank you Internet... Exactly what I needed!
Different solution (Score:2)
I found http://www.whatismyip.org/ [whatismyip.org] to be easier to scrape ;)
DIY solution (Score:2)
Stick it on the server of your choice, and you're all set. No, you don't need the closing tag.
remote_addr [slushdot.com]
I usually have a script to give me the output of phpinfo on a few domains so that I can test the cookies I'm setting/getting, etc. Always handy :-)
Re: (Score:1)
Of course I know that's a possibility. However, that assumes that I have a "real" server. All my (non-work) servers are on ADSL lines with dynamic IPs. It adds in another level of failure. Also, my servers both run OpenBSD and I don't have PHP installed on them, as I don't need it and it opens another level op security problems.
Basically, the dynamic IP part is what I'm trying to solve. I have an account at dyndns.org from before it became paying. This means I have 1 account that doesn't expire for my
Re: (Score:2)
A simple script on the client machine would then hit http://theirsubdomain.yourdomain.com?update.php?soopersekretkey=349b [yourdomain.com]
Re: (Score:1)
Nice... Didn't know that hosting was so cheap these days. Last time I checked it was 6€/month. I can't expect people to pay for this. Family 'n friends, ya know.
Besides, I always wanted a .lu domain. I was surprised that one was still free. (Bought it Thursday, it's still not activated... *sigh*)
Re: (Score:2)
But back to the $200 for 10 years bit - it's paid up for almost the next decade, so there's no big deal if anyone in my family wants some space to play around with, and it beats having to leave a machine on at hom
Re: (Score:1)
Just for the record. Those that need Windows, will have to run under my rules. My rules are: it's my installation, I'm admin, you get Limited User. Don't like that? Get another nerd.
That system works flawlessly. :-) Windows 7 is a bit more a bitch to run a
Re: (Score:2)
Why does Microsoft continue to rip off KDE? They're getting worse than Ubuntu ripping off Apple.
Re: (Score:1)
I still have to write a Journal entry on my fight with Windows 7 Professional on my brothers desktop computer. Technologically it may be a step in the "future" because of the good 64-bit support. For the rest... ehm, from an Administrator point of view (for small networks, big networks get other tools) it is not a good system at all.
Well, it smells like a Vista, walks like a Vista, quacks like a Vista...
Microsoft needs to stop pandering the home user and take us IT people back in control.
Re: (Score:1)
Yes, well... In their FAQ/Forums they make it clear that you can get banned if you do that. I prefer not to get banned. Especially if the script is run every 15 minutes.