Jump to content

Lockit

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Everything posted by Lockit

  1. seems this works every 5 attempts, however it uses the domain name instead of the numerical IP for the socket export. if($_SERVER['REMOTE_ADDR'] == "192.168.2.1") { $address = $_SERVER['SERVER_NAME']; } else { $address = $_SERVER['REMOTE_ADDR']; }
  2. Hmm, I never was good with explanations. I am not 100% sure something like this would work but what I am attempting falls along the lines of: if($_SERVER['REMOTE_ADDR'] == "192.168.2.1") { $ip = (Some method to retrieve the real IP.); } else { $ip = $_SERVER['REMOTE_ADDR']; }
  3. Testing the final release is what i mean. The server will also use the script for routine things. However using sockets to export data to a program will not work if the ip is sent to the router.
  4. Hello I was wondering how would I get $_SERVER['REMOTE_ADDR'] to work with local testing? Whenever I run the script at the host computer it always returned the address of the router, but if done remotely it will display the correct ip address. Thanks, Lockit.
×
×
  • 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.