PDA

View Full Version : [ubuntu] my ip is wrong



cybernet
August 8th, 2009, 04:47 AM
I'm using Ubuntu 9.04 Desktop to run my site
i use lighttpd / php 5.2.6 / mysql 5.0

but the problem is with a php function
that will be
$_SERVER["REMOTE_ADDR"];

if i will put php to show my ip address in a web page
he will give me ::ffff:i.35.65.i instead of x.35.65.x
when i used Ubuntu 8.04 i didn't had any of this problems:-k

from this post ( forum ) or what it is
http://bytes.com/topic/php/answers/3335-problem-remote_addr

the problem comes from a networking setup


What the solution for this ?:-|:confused: