PDA

View Full Version : ip adress


Nasier
10-19-2003, 10:15 AM
Im making a website where people can send emails without using there email adress. But to avoid abuse I'd like to fetch a users ip-adress. How do I show the users IP-adress on the screen using actionscript? or how do I fetch it in PHP?

Thanx in advanced.

CyanBlue
10-19-2003, 08:05 PM
Howdy... ;)

This has been on the subject several times... Searching the forum might get you faster answer... ;)

You can use this to get the user IP address...$ip = getenv("REMOTE_ADDR");

mdevall_sgs
07-13-2004, 12:28 PM
hey guys this is not working fine.I have a similar problem. I have an swf that loads in the client M/C and sends a registration to the server, now I need to get the IP of the client to validate the registration, as it needs to be unique according to my application. How to go abt it in AS, I can't use JS as I need to be platform independant.

Thanks in advance

Mohan

CyanBlue
07-13-2004, 01:51 PM
Howdy... :)

That code snippet is not ActionScript... That's PHP script and that's got to work if I remember correctly...
Oh... You cannot do that with AS alone... Flash can't do that...