Access XAMPP PC (lan) via laptop through WLAN

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Access XAMPP PC (lan) via laptop through WLAN

Postby jaahaa » 13. January 2015 15:00

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.
jaahaa
 
Posts: 2
Joined: 13. January 2015 14:53
Operating System: windows 7

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

Postby Altrea » 13. January 2015 17:03

Hi,

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

best wishes,
Altrea
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8299
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

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

Postby jaahaa » 14. January 2015 08:30

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
jaahaa
 
Posts: 2
Joined: 13. January 2015 14:53
Operating System: windows 7


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 55 guests