With pinggy.io you can share your XAMPP server from localhost with just a single command. Replace the port 80 with the port where your server is running.
Pinggy will give you a URL like https://ranlkfsbjkxry.a.pinggy.link
. Use this URL to access the server.