Page 1 of 1

configuring Xampp with IP in localhost

PostPosted: 22. January 2017 18:12
by argie01
Hi,

currently I have Xampp installed in my Windows, in localhost.
And when I get a web I use an url like this: http://localhost/web1

Problem is I can't access to that web using other device in the same LAN. So, how should I configure Xampp to run using and IP like 192.168.1.4??

Thank you.

Re: configuring Xampp with IP in localhost

PostPosted: 22. January 2017 18:34
by Nobbie
There is nothing to. Xampp (Apache) is running (i.e. "LISTENING") on all local IPs out of the box.

Re: configuring Xampp with IP in localhost

PostPosted: 23. January 2017 19:17
by argie01
Well, I have a Wordpress running inside Xampp in localhost, and I was unable to access it using

http://ip-of-PC/wordpress

Once my phone browser try to load that url it suddenly change to

http://localhost/wordpress

and it can't be loaded.

Thank you for your help.

Re: configuring Xampp with IP in localhost

PostPosted: 23. January 2017 19:38
by Nobbie
argie01 wrote:Once my phone browser try to load that url it suddenly change to

http://localhost/wordpress


Of course, because you made a severe error when installing WordPress. You have been asked for a Servername and you applied "localhost" - therefore WordPress redirects and links everything to "localhost". Meanwhile you see, what that means. You should have applied "ip-of-PC" instead, if you are planing to call it via Ip-of-PC.

As this obviously is not a Xampp issue, but a pure and plain WordPress issue, i suggest asking in a WordPress forum for more support.