Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8082839
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T17:15:14+00:00 2026-06-05T17:15:14+00:00

I have a basic web application written in Java, running on a tomcat on

  • 0

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 DB 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?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T17:15:20+00:00Added an answer on June 5, 2026 at 5:15 pm

    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:

    1. Direct connection via USB or Bluetooth.
    2. Wireless connection on your LAN – if your mobile can connect
      wirelessly to your home LAN, you should be able to access your web
      app (your desktop’s firewall may have to open up your web port)
    3. External access. This requires opening up your home network to allow
      access to your desktop’s web port. Also your internet router would
      have to be configured to allow access and likely do a NAT
      translation. Note that in this scenario, anybody can access your web
      app so be very careful. You would also need to use your external IP
      address instead of your internal LAN address.

    A domain is only required to allow the use of a name (http://www.example.com) instead of your IP address.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am experimenting with Java Web Start. I have just written a basic JApplet
I have a ASP .Net web appliaction written in Visual Basic .Net running on
I have an application written in pure/basic Java without GUI. I have three classes
I have a web server which is protected behind http-basic-auth. I've read through the
I have a basic web application (dynamic web project in eclipse) with an associated
I'm working on a web application written in Java using the Tapestry 5.1.0.5 framework.
I currently have a TCP server application written in .Net that receives and submits
I have a web application, written in PHP that incorporates Javascript and JQuery, that
I have a web application, written in PHP, where we have a couple of
I've written a basic password manager type web application to run offline on a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.