access wordpress localhost on mobile

Hi, have a live site – that I need to do some work on, so I’ve installed the wordpress site on my windows 10 + xampp and it appears ok. My problem is I’m unable to access the site on my mobile. I’m using the same wi-fi connection on my pc and mobile, I’ve changed the ip address in wp-config.php for WP_HOME & WP_SITEURL, but when I change DB_HOST from Localhost to ip address I get “Error establishing a database connection”. My question is how do I access a localhost wordpress site on a mobile device? Thanks for any help.

The page I need help with: [log in to see the link]


This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer