Page 1 of 1

Access XAMPP PC (lan) via laptop through WLAN

PostPosted: 13. January 2015 15:00
by jaahaa
Hi!

I tried to build a remote development environment to be able to develope sites with laptop.

For the moment I can access sites on XAMPP with laptop through wlan to lan(router) connection but there's a 404 problem with all server-side files such as css and js.

It tries to request these files form localhost/sites/file.css while I'm accessing the site with PC's local lan IP address.

Do I need to modify my laptops settings or pc(xampp)? I've tried modifying laptops hosts file to resolve localhost -> pc ip.

Re: Access XAMPP PC (lan) via laptop through WLAN

PostPosted: 13. January 2015 17:03
by Altrea
Hi,

This is an application configuration issue, not an XAMPP configuration issue.
Your application is mapped to the wrong base url.

best wishes,
Altrea

Re: Access XAMPP PC (lan) via laptop through WLAN

PostPosted: 14. January 2015 08:30
by jaahaa
Hi! Thanks for your reply.

Now I can access my web app properly. I did as follows:
  • added new virtualhost(windows pc name) into XAMPP config and
  • changed my web app's base url to match it