I can not access local wordpress from Smartphone (Error Connection Refused)

0

I have installed a copy of my website on localhost (use xampp for Windows) to be able to test it.

Everything is fine ... Until I want to access from another device located in the same local network (in this case from my smartphone)

The problem is this:

  • I type the IP of the computer where I have a copy of the web followed by the route: 192.168.1.36/copiasitioweb

  • The browser changes the IP to "localhost" and returns an "Error Connection Refused"

  • This only happens with the copy of the wordpress website that I have on site, to my other projects I can access without problem.

What can this be? Permissions? Any wrong configuration in the Wordpress configuration files?

    
asked by Alfonso1989 19.04.2016 в 14:19
source

1 answer

3

It may be due to the configuration saved in the database. Check the table wp_options or if you put a table prefix other than wp it would be prefix_options .

There you review the option_name and option_value columns, in the option_name column review the values of siteurl and home , if the values of these are with localhost, change localhost by the ip of the machine that is running the server. For example:

    
answered by 19.04.2016 / 15:08
source