Computer's IP address

Hi there,

How do you get the IP address of the computer running the code?

Thank you...


  • The code is running on the server... but the remote IP is saved in the enviroment variables...

    you can get it this way:

    $ip = getenv("REMOTE_ADDR");

    hope this is what you've meant
    best regards,

    sebastian mohrenstecher
    executive secretary

  • Thank you, that's what I meant
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!