Jump to content

problem with my IP


cybernet

Recommended Posts

i'm using ubuntu 9.04 desktop

with php 5.2.6 & lighttpd server

 

when i echo $_SERVER['REMOTE_ADDR'];

i get ::ffff:my.IP :wtf:

 

instead of my.IP

example - i get ::ffff:127.0.0.1 instead of 127.0.0.1

 

what's wrong ??

how can i solve this ?

when i used ubuntu 8.04 i never had this problem  :shrug:

Link to comment
Share on other sites

127.0.0.1	localhost
127.0.1.1	cfn

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

 

it's already on ipv4

at least that what ubuntu says :D

( see screenshot )

 

[attachment deleted by admin]

Link to comment
Share on other sites

I've reported this thread so it will be moved to Linux Help.

 

Yeah, when I said your using ipv6 I didn't actually mean using it, I just meant your OS is configured to handle being on an ipv6 network if need be.

 

As for helping, I'll try but Ive not delt with ipv6 as of yet.

 

One of the first things on do on new Debian or Ubuntu installs however is to remove all the ipv6 stuff from my hosts file. Not sure if it will help, but Id comment out those lines and restart networking to see if it has any effect.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.