banana999
Member
Posted 5 years ago #
Hi all,
I installed Xampp and WordPress on one of my PCs in LAN. All looks wonderful, but only within LAN. When somebody is trying to access my site from Internet (on my router, DynDNS and port forwarding are set up and running), he becomes after 25-40 sec waiting only the page with plain text and some URLs - no background, no grafik, nothing, and most of URLs are dead too. Missing pics and URLs are pointing to local IP of the machine where wordpress is installing.
Where I made an mistake and what should be made to correct this problem?
Thank you in advance!
Hoo.... that's a server-setup question; I don't have any info on that really. You might want to check on sites where server setup is the main topic. This forum is mostly pointed toward individual wp installs on hosted servers.
Look at Options -> General. See those two URI fields? "localhost" won't work there.
banana999
Member
Posted 5 years ago #
HandySolo, there was a point. I had no "localhost" here but local IP. Maybe this solution will be helpful for someone else too.
1. Change "Hosts" file on local PC where all is installed.
Internet address (for example example.dyndns.org) must be pointed to its local IP or just 127.0.0.1
2. Change "hosts" on other PCs in LAN to associate local IP of webserver with its internet domain name
3. Change URL fields under Options -> General. There must be not, for example, http://192.168.0.25/blog but http://example.dyndns.org/blog It works!