Page 1 of 1

how to make xampp work across network

PostPosted: 20. November 2011 06:07
by jiba
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.

Re: how to make xampp work across network

PostPosted: 20. November 2011 06:15
by Sharley
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.

Re: how to make xampp work across network

PostPosted: 20. November 2011 06:30
by jiba
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

Re: how to make xampp work across network

PostPosted: 20. November 2011 06:53
by Sharley
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. :)

Re: how to make xampp work across network

PostPosted: 20. November 2011 07:07
by jiba
Thanks, will give it a try.
JB