[plug] Determining ip address
Cameron Patrick
cameron at patrick.wattle.id.au
Wed Dec 17 14:03:46 WST 2003
On Wed, Dec 17, 2003 at 09:53:07AM +0400, Brad Campbell wrote:
| Anyway, for now just determining my IP so I can post it to a website
| (DIY dynamic redirection) would be nice.
If you'll be posting it to a website, a CGI script that looks something
like
#! /bin/sh
echo Content-type: text/plain
echo
echo ${REMOTE_ADDR}
might do the trick - then use curl from the command line to grab the IP
from the server. Clumsy but easy to make work :-)
Cameron.
More information about the plug
mailing list