Re: Get your *own* IP...?!
| From: | info at t-host dot com | Date: | Tue, 07 Jan 2003 10:43:55 +0000 |
| Subject: | Re: Get your *own* IP...?! | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-130552@lists.php.net to get a copy of this message | ||
Hello Michael,
please go to your Bash-Shell. There you type:
MYIP=
/sbin/ifconfig ppp0 grep inet | cut -d: -f2 | cut -d" " -f1 ;
$MYIP has now your dyn IP Adress.
Best regards,
Oliver Etzel
---------------------------------------------------------------
info@t-host.de
Phone +49 89 54071102
New - .eu-Domains
Scriptinstallation Serverconfiguration Hosting Serverhousing Domains
www.t-host.de
---------------------------------------------------------------
> Does anyone know a way to fetch your own IP-adress? I need it because I run
> a web server on my computer with a dynamic-IP so I need it to change all the
> URLs it creates dynamically...