• Resolved focalpress

    (@focalpress)


    I am a beginner. I have built a WAMP/WP website on a spare Windows 7 PC in my home. Using my normal PC on the same LAN I can access everything on the site. It all works great.
    Now, if I try to access the site from the internet, I cannot connect.
    BUT
    If I put a simple index.html and also a simple index.php file in the WP root directory (temporary rename of WP’s index.php file), I can access both of these from the internet by explicitly saying https://www.domain.com/index.php (or index.html). So I conclude port forwarding and firewalls are all set up and working correctly.
    Likewise the PHP server part is working since the simple index.php can be seen.
    Please, can anyone suggest a diagnostic approach? Or is there some part/setting in WP that distinguishes between local and remote access?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey focalpress,

    Welcome to the world of WordPress! How are you addressing your website from outside of your local LAN? If you look in WordPress Settings->General you will see a couple of url settings. Have a look here for more info: https://codex.www.ads-software.com/Changing_The_Site_URL

    If you are addressing your site from outside your home using something different than the Site Address (URL) it will not work.

    Hope that helps!
    –AJ

    Thread Starter focalpress

    (@focalpress)

    Many thanks. That’s the problem. But not easy to fix – there are hard coded links everywhere. What a mess. All because of one dumb line entered at the very start. I guess that’s how you learn.
    Your help much appreciated.
    FP

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Problem accessing WP from the internet. Works on local.’ is closed to new replies.