I have setup a LAMP server on my Raspberry Pi 3. I am using it to host a WordPress site. When the pi is connected to my home server, I can use the pi's ip address from my laptop to view the site. Alternatively I can use localhost on the pi's GUI to view the site.
What I would like to do is using the same laptop and pi, access the WordPress site when both the pi and laptop are connected to my mobile phone's hotspot network, therefore being able to show the WordPress site when I am away from my home network. Thus far I have been unable to make this work.
Using $ hostname -I, I have found the pi's ip address but inputting it into the browser produces no connection to the word press site.
I'm unsure if there is security in the way or if there is another, better option, at my disposal.