Add Comment

You are not currently logged in. If you do not have a user account then please consider creating one and logging in before you post your comment. This will allow you to track replies to your comment, and take part in the site much more freely.

To add your comment, fill in all the boxes below and then preview it to make sure you're happy with the way that it looks.

This is the comment you were replying to, attached to the weblog Determine your public IP address quickly


Re: Determine your public IP address quickly
Posted by Anonymous (64.142.xx.xx) on Wed 30 Jan 2008 at 20:50
using echo, nc, tail and tr:

$ echo -e "GET http://checkip.dyndns.org/ HTTP/1.0\r\n\r\n"|nc checkip.dyndns.org 80|tail -1|tr -dc '[.0-9\n]'

Also works from a reasonably complete busybox; add busybox to each command (I.E. 'busybox tr...') if you don't have symlinks.

Then again, if you have a complete busybox, this works too:

$ busybox wget -qO - http://checkip.dyndns.org |busybox tr -dc '[.0-9\n]'

Username:Anonymous
Title:
Your Comment:

Posting Format:

 

Inappropriate comments will be removed.

Some help on entry formatting is available

User Login

Username:

Password:

[ Advanced Login ]

Register Account

Quick Site Search