Reputation: 21
I searched but couldn't find the answer to this specific question.
I'm running XAMPP for windows and it's working fine on my local machine but when I try to access Wordpress through the network all I get is the index page. The pages aren't formatted properly and the links don't work. PHP isn't working through the network.
This works on my local machine: "http://192.168.x.xxx/mysite/wordpress/" but when accessing it through the network, I get the problem above.
How can I get this to work so that someone in the next office can view the sites properly too?
Upvotes: 2
Views: 7432
Reputation: 17354
The pages are not rendered properly because CSS is not being loaded. In wordpress setting (last tab on left), make sure you change the path to
192.168.x.xxx
By default, this path is localhost. Although they both mean the same thing, localhost is not interpreted the same as IP address. Like wise computer name is also not interpreted the same as localhost.
I would recommend to change localhost in wordpress setting to your computer name and then access your blog through your computer name, not the IP address, that makes life a little easier.
Also make sure you have shared the folder contain Wordpress + make sure your have enabled exception on firewall for port 80 which is the default port.
Upvotes: 6
Reputation: 8121
Have you tried looking here, there are looooooads of hits for this on google : http://www.google.co.uk/search?gcx=c&sourceid=chrome&ie=UTF-8&q=xampp+not+working+over+lan
After a quick browse it appears the firewall on your pc is probably blocking it, as someone noted 'allowed port 80 limiting the scope to my subnet' , try allowing incoming traffic on port 80, restrict it to just your local lan though.
Just as a quick test try turning your firewall off totally and see if it works, if it does you know its a firewall problem and you will then need to open up ports its blocking.
Upvotes: 0