Forum Moderators: phranque

Message Too Old, No Replies

change default localhost IP to ISP IP

         

sam222

5:42 am on Oct 23, 2011 (gmt 0)

10+ Year Member



My localhost having 127.0.0.1 as default IP address. Can i change it to one got from ISP?

g1smd

6:56 am on Oct 23, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Question too vague.

lucy24

6:58 am on Oct 23, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Can you ask that again, using more words? It's not really clear what you want to do.

127.0.0.1 is used for convenience. You can give anything in the 127.n.n.n range and it should work the same.

sam222

7:44 am on Oct 23, 2011 (gmt 0)

10+ Year Member



I just want to run a test program from my localhost. I always get 127.0.0.1 when i try by $_SERVER['HTTP_CLIENT_IP'] or $_SERVER['REMOTE_ADDR'] or $_SERVER['HTTP_X_FORWARDED_FOR'] locally. How can i assign same network IP to my server so that i would be able to access something like 86..