简体   繁体   中英

How to use localhost or other external IPs

Is there a way to change the localhost path into some other IP. For example: http://130.147.134.66/xampp/ instead of localhost/xampp

or

If it only reads with 130.147.134.66 how can I change it back to localhost/xampp?

You can only change your ip address to your actual IP address.

For example 127.0.0.1 which is a loopback address to your local machine.

If that 130 address points to your actual machine, then that address should work with minimum configuration.

A good trick is (on unix) editing your /etc/hosts file to point a domain such as mytestingdomain.com to 127.0.0.1

127.0.0.1 website.com

You can change it in C:\\Windows\\System32\\drivers\\etc\\hosts file.

http://en.wikipedia.org/wiki/Hosts_(file)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM