Re: finding the ip adres of the visitor of a web site.

mustafa sahin <[email protected]>
Newsgroups gmane.network.ipv6.general
Message-ID <[email protected]>
Hi again,

I found the answer of my question, and  dont want to take your valuable
time.

Incase any other friend needs this, i am giving the simple php code.

 <?php
  if (ereg(':',$_SERVER['REMOTE_ADDR'])) {
    echo "You're using IPv6";
  } else {
    echo "You're using IPv4";
  }
?>
</p>
<p><?php echo "Your IP address is: ".$_SERVER['REMOTE_ADDR']; ?></p>

Best,

Mustafa Sahin.

On 1/21/06, mustafa sahin <[email protected]> wrote:
>
> Hi to all IPv6 users,
>
> Does anyone know how can i learn the ip adres of a client that is
> connected to my web site, and whether he/she uses IPv6 address or not, like
> www.kame.net and www.sixxs.net does at the bottom of their sites. Is there
> any open source script for this. I will also appreciate if someone can tell
> me how it is done, rather that the code itself...
>
> Best,
>
> Mustafa Sahin
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.