I have a basic web application written in Java, running on a Tomcat on my localhost. Currently it's just a simple application with a single servlet to which I access from my browser. I want to write a mobile Android application which will be the client of my Java web application. I want the servlet to write to a database and do some logic, but to access it from a mobile app.
Currently I don't have any domain registered.
How can I expose my Java web app so that in my development environment I would be able to access it via my mobile device? Meaning, currently it runs locally on my PC and I access from the browser (on localhost). I want to access it from a different device (mobile) - how can it be done in my home LAN?
If the web app is hosted on your local server, your mobile will need to be able to access the IP address (ie: 192.168.1.100) and port (ie: 8080) that is hosting the app.
There are several ways to allow your mobile to communicate to your desktop:
A domain is only required to allow the use of a name (http://www.example.com) instead of your IP address.