Re: find out ip address [beginner]
| From: | Tobes | Date: | Tue, 25 May 2004 20:01:08 +0000 |
| Subject: | Re: find out ip address [beginner] | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-186944@lists.php.net to get a copy of this message | ||
My page is supposed to compare the client IP address to the IP address of an
other webserver. I have that domain name and would like to find out it's IP
address. Unfortunately its IP address changes regularly (dynamic dns) so
that gethostbyname() does not work (it caches the IP address).
I am working on PHP4 and can't patch / update / anything the system. I
couldn't even tell you what exact version and plugins, etc is running on
that web server I am working on.
Any more info needed to answer this question? Feel free to ask...
Thanks for all help in advance
Tobes
"Chris W. Parker" <cparker@swatgear.com> schrieb im Newsbeitrag
news:001BD19C96E6E64E8750D72C2EA0ECEE65DD7A@ati-ex-01.ati.local...
Tobes <mailto:php@tobischmidt.de>
on Monday, May 24, 2004 2:09 PM said:
> hi, i need some code to find out the ip address of a server. just a
> simple dns query.
>
> how do i do that? i'm a beginner, please help.
are you saying you already have the FQDN (Fully Qualified Domain Name)?
or are you trying to get the ip address of the client system requesting
your page?
chris.