WordPress.org

Ready to get started?Download WordPress

Forums

Behind Router/LAN (16 posts)

  1. Zyzzy
    Member
    Posted 8 years ago #

    Hi! I've searched for this topic and found some similar threads, but none with an answer to my prob :(

    I've got 2 computers in a LAN, behind a D-Link router. One of those is hosting WordPress: WinXP Pro SP2 with Apache2, PHP 5.1.2 and MySQL 4.1.

    Basically after installing I can either let the world see my blog, or me (from my LAN). I've tried to forward ports and everything, with no success. If I set WP to http://my.dns.addy.org I can't see it or admin it; but if I set it to http://localhost/, no one else can visit it.

    Is there a .php file I can modify or a setting I can change? I was really amazed with WP, compared to other blogs, but this LAN thing is really bugging me :/

    Thanks,
    Zyzzy.

  2. ulyssesr
    Member
    Posted 8 years ago #

    Zyzzy,

    You have the forward port 80 of the machine where your WordPress blog is running. For example: if the ip address of the system is 192.168.0.10, you need to setup your router to forward 192.168.0.10 on port 80 so that the rest of the world can see it.

    In addition, you also need to make an entry with your Windows "hosts" file so that you can type in my.dns.addy.org in your browser. Typing localhost should work also.

    Hosts entry
    192.168.0.10 http://my.dns.addy.org

    Hope that works out for you.

    Regards,
    Ulysses

  3. Zyzzy
    Member
    Posted 8 years ago #

    Ulysses,

    The port forwarding is already done - although I use 1024 because my ISP blocks port 80. This "host" thing sounds like what I need, but I don't know how do that :) I'm using FF 1.0.7, if it helps in anything.

    Thank you,
    Zyzzy.

  4. Zyzzy
    Member
    Posted 8 years ago #

    PS: Is it the one in C:\Windows\system32\drivers\etc? If so, after I add the entry, do I reboot?

    Ty,
    Zyzzy.

  5. Class
    Member
    Posted 8 years ago #

    Your host file can be found in WINDOWS\system32\drivers\etc.
    It's a plaintext file, edit with notepad or similar.

  6. Zyzzy
    Member
    Posted 8 years ago #

    Ulysses, Class,

    I've tried editing the host file (actually I found 2, "hosts" & "hosts.msn" - I edited both), but when I type http://my.dns.addy.org in FF, I still get the error. The entry must have the "http://" part, right? Does this file startus up automatically? *head scratch*

    Thanks,
    Zyzzy.

  7. Class
    Member
    Posted 8 years ago #

    It's the hosts that is correct and no, just use the domain, like my.dns.addy.org.

  8. The entry in your hosts file should look like this:

    192.168.0.10 my.dns.addy.org

    Most definitely without the http:// bit.

    A reboot will make sure your PC picks it up (though it shouldn't really be necessary).

  9. Zyzzy
    Member
    Posted 8 years ago #

    Ahhh I see.. one last thing: does the hosts file admit ports? Example: 192.168.0.10:1024

  10. Zyzzy
    Member
    Posted 8 years ago #

    No effect :( could it be cause of the :1024 maybe?

  11. ulyssesr
    Member
    Posted 8 years ago #

    hmm. try typing this in your browser: http://my.dns.addy.org:1024

  12. BenHMin
    Member
    Posted 8 years ago #

    Hi,
    I'd like to add that I'm having a problem that seems similar to the one Zyzzy is having. I have my, admittadly, simplistic site set up at http://romptown.org/blog.

    I have no problem viewing the site from within my local network, which I take to mean that the site should work, with proper routing, from the outside as well.

    However, when I attempt to view the site from anywhere outside my network, or though a proxy, it never finishes loading. Interestingly, the default Os X Server homepage I have running at http://romptown.org and its accompanying blog work fine from within and without my local network.

    I have port forwarding from port 2175 to port 80 on my web server, and dns pointing to romptown.org:2175, so I can't understand why my blog won't load. Any ideas? Thanks

  13. Kafkaesqui

    Posted 8 years ago #

    BenHMin, I suspect it has to do with the fact that when [I] try to reach it, I'm directed to 192.168.0.100, which is a local IP on your LAN, not one that's accessable to the Internet at large.

  14. BenHMin
    Member
    Posted 8 years ago #

    How would one go about changing to which IP wordpress points to? In the wp-config.php file i can edit the database host, but should I?

  15. Zyzzy
    Member
    Posted 8 years ago #

    Ulysses, the DNS service I use already makes the port changes, so there's no need to use the :1024 at the end of the URL. Maybe Windows doesn't like that in the hosts file?

  16. Zyzzy
    Member
    Posted 8 years ago #

    Nevermind, I know what it is. Hosts file doesn't use ports at the end, so it wasn't working. I made all the changes to use port 80 and it works. Problem is that my ISP blocks port 80 - but that's not you guys' problem ;)

    Thanks very much for the help! :D

Topic Closed

This topic has been closed to new replies.

About this Topic