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 9073071
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T18:19:45+00:00 2026-06-16T18:19:45+00:00

Is it possible to access my web application using public IP address like, http:/AppServerIP:8180/myWar/myServlet

  • 0

Is it possible to access my web application using public IP address like,

http:/AppServerIP:8180/myWar/myServlet

If I hit through Web Server like below it works fine (Servlet gets invoked)

http:/WebServerIP(public)/myWar/myServlet

When am trying to invoke the Servlet from my Application Server, am getting the below exception.

java.net.ConnectException: Connection timed out
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
        at java.net.Socket.connect(Socket.java:529)
        at java.net.Socket.connect(Socket.java:478)

Servlet gets invoked internally through code when another end User concurrently logs into same port. So, I want to call that Servlet and invalidate the current session. I don’t want to go through Web server as it might send the request to other ports as well.

My project Stack : Jboss AS 5.1.0 GA, Apache web server 2.2.5 and Port Number is 8180

  • 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-16T18:19:46+00:00Added an answer on June 16, 2026 at 6:19 pm

    First of all, you need to get your public IP address, which you can find using ipconfig command on Windows machine.

    Then, you can try like this

    http://<your_public_ip_address>:<your_webserver_port>/
    

    It will show you server welcome page. And you need to open your specific project. Then, try this

     http://<your_public_ip_address>:<your_webserver_port>/myproject/
    

    It will show, your index or home page of your project.

    Note : You need to be sure for your IP Address and Port Number

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

Sidebar

Related Questions

I would like to create a web application using PostgreSQL as a database. I
Is it possible for a web application to access its own deployed folder. I
Is it possible to access a standalone GUI-based application over the Web? The concerned
I'm using a asp.net web application project, and I cannot access any asp:content controls
Is it somehow possible to access a user's public key files (located in ~/.ssh
Is it possible to access an XML section / node using an attribute value
I am assigned a task to develop a large scale social web application like
I'm developing a web application using Java EE6 and JSF 2.0. I have a
I have an existing Java web application running on Linux using embedded Jetty. The
I'm working on a clojure web application, using leiningen 2 for build and deployment.

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.