I have found many similar questions, but I'm very noob with server's stuff.
I have a notebook running a linux distro (Gentoo). This distro is running Ubuntu Server using Virtualbox. In this server there is Tomcat web server listening (by default) to port 80.
Now I'd like to realize at least two use cases:
- Send http request to Tomcat from my Gentoo Host when there isn't an active internet connection, i.e. when I'm not in my home (probably using an
http://localhost/...-like in my Gentoo's browser?)
- Send http request to Tomcat from any machine in the same LAN, i.e when I'm in my home (probably using an
http://192.168.0.xx/...-like in my client's browser?)
Obviously in both cases the server must be able to send http response to the client.
I hope that someone can link me or write me a simple step-tutorial.
Thanks in advance.
EDIT: UPDATE, the second point works by default. The virtual server has the local
192.168.0.15 IP (probably it will change every time, but I can live with this), and if I type
192.168.0.15:8080 in any browser in my LAN, Tomcat correctly works.
So I need help only for the first point, i.e. when my notebook is disconnected from any LAN.