Forums

Setting Home and Site URL using port fwd (7 posts)

  1. twopelicans
    Member
    Posted 5 months ago #

    Hi
    Im running two wordpress sites on two different machines, different URLS via NO-IP as my WAN IP is dynamic. One host is using a straight forward redirect and by setting the wordpress Home and Site URL to the NO-IP domain name all works as it should. However the second host requires a port 80 redirect which I have pointed to 8080 (so that my router can direct the client to the correct machine - which it does). I have set up apache2 to listen on 8080 which it does. However when I set the wordpress Home and URL to the NO-IP domain name it bring fails to bring up the site. If I use the LAN IP address and port 8080 for the Home and Site URL all is well and it works. Clearly however WAN users wont be able to access the site.

  2. If you don't mind sharing the IP address and DNS name, it will help determine what's going on.

    It's almost certainly your WordPress Address (URL) and Site Address (URL) but looking at the generated HTML will sort that out quickly.

    http://your-blog-url/wp-admin/options-general.php

  3. twopelicans
    Member
    Posted 5 months ago #

    Jan

    the wordpress site in question is bswilts.hopto.org. this site is hosted by NO-IP which resolves this site to the following IP http://86.150.255.62:8080/

    As you will see all of the wordpress links resolve to a LAN address.

  4. That helps a great deal and after looking at your site via the IP address I'm pretty sure I know what the issue is.

    1. Your DNS is not quite right.

    When I resolve the DNS name bswilts.hopto.org I get a different IP address than 86.150.255.62.

    bswilts.hopto.org.	60	IN	A	8.23.224.90

    I'm not familiar with NO-IP, but when I used http://dyn.com/dns/ I get the IP address of my cable-modem/FIOS/WAN address. If you can, get that DNS name updated with your actual IP address.

    2. The blog settings are not right.

    Your blog settings are probably set as follows:

    http://192.168.1.69:8080/wp-admin/options-general.php

    WordPress Address (URL): http://192.168.1.69:8080
    Site Address (URL): http://192.168.1.69:8080

    Which works if you are on your private LAN and use the IP address 192.168.1.69:8080. But the generated HTML will include the URLs that only work inside your LAN.

    Try this. Write down those two settings and change them to

    Modify your wp-config.php file to include these two lines:

    WordPress Address (URL): http://86.150.255.62:8080
    Site Address (URL): http://86.150.255.62:8080

    Then visit your blog at http://86.150.255.62:8080 and see if it comes up.

    If that does work then once you have your DNS fixed, update it with the DNS name instead of the IP address.

  5. twopelicans
    Member
    Posted 4 months ago #

    Ok

    Ill give that a go. the only problem is that the 86.150.... IP address is dynamic and Im not sure how long the lease is. That said Im only using this for testing before I deploy it onto a service provider. Of interest my other domain lurielogistix.zapto.org works perfectly with NO-IP and with Home and URL set as lurielogistix.zapto.org

    Thanks for you prompt assistance and suggestions. Ill post a reply when Ive given it ago.

  6. twopelicans
    Member
    Posted 4 months ago #

    Ammended my settings with the 86.150... IP and all is working - accept I cant authorise my facebook plugin (doesnt like the redirect!!!!!) so it looks like ill be deploying sooner than I thought!

    Thanks once again for your help

  7. Glad it's working for you. Once you sort out the NO-IP DNS name you'll be able to update the URL with the DNS name instead of the IP address.

Reply

You must log in to post.

About this Topic