How get client IP ? (immediate) --> problem that never so

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
manager
Forum Newbie
Posts: 1
Joined: Mon Sep 18, 2006 4:02 am

How get client IP ? (immediate) --> problem that never so

Post by manager »

hi

How get client IP using any server side or client side script ? I try some script but there return incorrect IP number.

for exmple i see that server variable such REMOTE_ADDR return client IP but this variable return proxy IP or domain IP and incorrect IP.

Rapidshare is nearest application that can get correct IP (but however this is not exactly correct)

please help me and u
User avatar
aaronhall
DevNet Resident
Posts: 1040
Joined: Tue Aug 13, 2002 5:10 pm
Location: Back in Phoenix, missing the microbrews
Contact:

Post by aaronhall »

What is a "correct ip"? Do you want to get a local intranet ip address? Anyway, the server can only report what the client tells it. I think you're down a dead end.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

We've had many discussions on how to pull the IP of a requesting user, however none are 100% reliable. Why do you need the IP? IPs are not relatable to users in any shape or form.
Post Reply