Search code examples
wordpressxampp

How to change a localhost url to ip in wordpress?


I am developing a site using wordpress, MySQL and Xampp. The current url is like localhost/wordpress/sitename. How can I change the localhost to an ip address to get the site working on other computers on the same network?


Solution

  • You put your IP address allocated by the network's DHCP server(if it exists) instead of 'localhost' it should work. else just put your ip address form the other computers connected to the network.

    Eg. If your IP address turns out to be 127.23.45.66

    You should enter this in the address bar of the other comps

    127.23.45.66/wordpress/sitename