WordPress.org

Forums

How to change my windows hosts file (3 posts)

  1. Hans C
    Member
    Posted 4 years ago #

    I cannot connect to my homepage through the internal lan. From outside it is working like it should. So i have to change my hosts file, wich should be pretty straightforward, but I cannot seem to get it right.

    Internal, my wordpresssite is at http://192.168.1.70:85/wordpress
    External it is at http://84.245.xx.xx:85/wordpress

    I added the following line to my hosts file:

    192.168.1.70 84.245.xx.xx

    But i still cant reach it. Anyone?

  2. I don't think you can do that with a HOSTS file. HOSTS is intended to convert names to IP addresses, not a private IP address to a public address.

    Have you considered registering a domain name for your site? A free subdomain from a service like DynDNS would do the job. You could then use the domain name externally, and get your HOSTS entry to look like this:

    192.168.1.70 yoursite.domain.com

  3. Hans C
    Member
    Posted 4 years ago #

    I have considered that, but I like to be independent of companies etc. It surely must be possible to work on a site from within your own LAN?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.