Cannot access WordPress website from external IP while internally it is working properly [closed]

When installing WP onto an IP address (or hostname), WP will only respond to requests on that IP address. Any request from another IP address even if it resolves to the same server, will result in a redirect to a WP error page.

In this situation, I would do this:

  1. Install WP on the public IP address. This will work if you can route to the public IP address internally.
  2. f you cannot route to the public IP address internally then I suggest installing on a hostname. You need to configure your DNS so that internally it will resolve to the internal IP address; and externally it will resolve to the public IP address.