Title: Cant access from LAN
Last modified: September 1, 2016

---

# Cant access from LAN

 *  Resolved [emiliskvg](https://wordpress.org/support/users/emiliskvg/)
 * (@emiliskvg)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/cant-access-from-lan/)
 * Tried using google to solve this issue but nothing came up.
    So, I have a WordPress
   site running on my server, I can access it normally from the internet with the
   URL [http://www.example.com/blog/](http://www.example.com/blog/) and it works
   fine. But I cant access it from LAN. Lets say my LAN IP is 192.168.1.1 and my
   server is 192.168.1.2 ,when i type the servers LAN IP 192.168.1.2/blog in the
   address bar I get redirected to [http://www.example.com/blog](http://www.example.com/blog).
   I tried using the HOSTS file with “192.168.1.2 example.com” ,but that didnt help.

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

 *  [oMega_2093](https://wordpress.org/support/users/omega_2093/)
 * (@omega_2093)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/cant-access-from-lan/#post-7603333)
 * Hi there,
 * Keep an eye on www: if your blog is being served to `www.example.com`, type that
   in your hosts file instead of just `example.com`.
 * Did that help?
 *  Thread Starter [emiliskvg](https://wordpress.org/support/users/emiliskvg/)
 * (@emiliskvg)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/cant-access-from-lan/#post-7603336)
 * Yes, that solved the issue…silly me.

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

The topic ‘Cant access from LAN’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [emiliskvg](https://wordpress.org/support/users/emiliskvg/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/cant-access-from-lan/#post-7603336)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
