how to make xampp work across network

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

how to make xampp work across network

Postby jiba » 20. November 2011 06:07

Xampp 1.7.4 with XAMPP Control Version 2.5)
OS: Windows XP 3SP
Hosts file:
127.0.0.1 localhost
127.0.0.1 mysite.com
httpd-vhosts.conf
...
<VirtualHost *:80>
ServerName mysite.com
DocumentRoot "C:/xampp/htdocs/mysite/"
</VirtualHost>
...

I am a newbie and installed xampp on my desktop months ago. test server was running fine on localhost. I was about to view my site from another pc on Local Area Network by typing 'http://mysite.com' in IE8 then. Recently had I found that I was not able to do it anymore after messing round with drupal 6 and drupal 7 and/or configurations. Can anyone help me understand reason why? Any comments or suggestions are much apppreciated. Thank you.
JB
P.S. I can still have access to my site from another pc on LAN using my desktop''s IP address.
jiba
 
Posts: 3
Joined: 20. November 2011 04:52
Operating System: Windows XP

Re: how to make xampp work across network

Postby Sharley » 20. November 2011 06:15

Is that the sum total of the httpd-vhosts.conf file entries you have made?
Code: Select all
NameVirtualHost *:80

<VirtualHost *:80>
ServerName localhost
DocumentRoot "C:/xampp/htdocs"
</VirtualHost>

<VirtualHost *:80>
ServerName mysite.com
DocumentRoot "C:/xampp/htdocs/mysite"
</VirtualHost>
No trailing slash on the DocumentRoot.

The LAN PC would not know about the mysite.com address unless it was also included in the host file of that LAN PC using the IP of the PC that XAMPP is installed on:
Code: Select all
xxx.xxx.xxx.xxx mysite.com
Try that and see if it works.

The alternate to the hosts file is a network DNS setting.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: how to make xampp work across network

Postby jiba » 20. November 2011 06:30

Thank you, Sharley for speedy and helpful repsonse.
httpd-vhosts.conf made above is only part of it.
I changed host file on LAN PC as you sussgested. It works!
I am more intested in your second suggestion on network DNS setting. How could I make that happen? Thanks again for help.
JB
jiba
 
Posts: 3
Joined: 20. November 2011 04:52
Operating System: Windows XP

Re: how to make xampp work across network

Postby Sharley » 20. November 2011 06:53

Sorry I can only help with XAMPP issues not network issues in this forum.

See if there are any results in this forum search for DHCP.

Try the Internet and especially using the make and model of your router may help.

These links might offer some assistance for your particular LAN router settings:
http://portforward.com/
http://www.simpleportforwarding.com/

Or you could wait here until another helpful member reponds who, perhaps, wants to show off their network prowess. ;)

Good luck. :)
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: how to make xampp work across network

Postby jiba » 20. November 2011 07:07

Thanks, will give it a try.
JB
jiba
 
Posts: 3
Joined: 20. November 2011 04:52
Operating System: Windows XP


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 86 guests