• I have installed wordpress in my LAN ( http://192.168.9.1) and its working fine.Now i need to access it from wan so that i have added a NAT rule in firewall “public ip to LAN IP”. I can access all other virtual hosts in the LAN IP from outside but cant access wordpress.
    then i changed the values in wp-config.php
    define(‘WP_SITEURL’,’http://WANIP’);
    define(‘WP_HOME’,’http://WANIP’);
    and its working,is this the correct method?

Viewing 3 replies - 1 through 3 (of 3 total)
  • its working,is this the correct method?

    It will work for a while, but if you have a dynamic IP address that gets assigned by your ISP, it will stop working the next time the IP address changes.

    You may want to look into a domain name provided by a dynamic ip address service that offers a client or router based updater that will automatically update your ip address whenever it changes.

    Thread Starter shalib2

    (@shalib2)

    i am using a static Ip for WAN.Then everything ok, right?

    That should work.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Accessing locally hosted wordpress from WAN’ is closed to new replies.