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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:09:45+00:00 2026-06-13T19:09:45+00:00

I have a jboss server running, and inside webapplication there code below. The question

  • 0

I have a jboss server running, and inside webapplication there code below. The question is I can not connect to server. The interesting thing is if I write 127.0.0.1 instead of 0.0.0.0 all is ok.

I am running jboss server with this command:

#!/bin/sh
nohup sh run.sh -b 0.0.0.0 -c crm &

this is the sample code

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.PrintStream;
import java.net.URL;

public class Test{
        public static void main(String []args){
                System.out.println("TEST");
                System.setProperty("java.net.preferIPv4Stack" , "true");
                String url="http://0.0.0.0:8080/webapp/vacancies?rabota=rabota&area=7232&speciality=Стораж&email=&phone=77019813144";
                System.out.println("START");
                try{
                        URL yahoo = new URL(url);
                        BufferedReader in = new BufferedReader(new InputStreamReader(yahoo.openStream()));
                        String inputLine;
                        while ((inputLine = in.readLine()) != null) {
                                System.out.println(inputLine);
                        }
                        System.out.println("FINISH!");
                        in.close();
                    }
                    catch (Exception e)
                    {
                      System.out.println("ERROR opening jobs servlet: " + e.getLocalizedMessage());
                    }
        }
}

so in the end I am getting connection timeout exception.

  • 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-13T19:09:47+00:00Added an answer on June 13, 2026 at 7:09 pm

    There is a complete thread on why 0.0.0.0 cannot work at Is 0.0.0.0 a valid IP address?;.

    The difference between 0.0.0.0 and 127.0.0.1 is covered in details at https://serverfault.com/questions/78048/whats-the-difference-between-ip-address-0-0-0-0-and-127-0-0-1.

    If you want your code to work, you must change http://0.0.0.0:8080 to http://127.0.0.1:8080 or use the system interface(the correct ip address).

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

Sidebar

Related Questions

I have JBoss running as application server and somewhere on my HD there is
I have a web application deployed on a jboss server running on a unix
I have a web application running in a jboss application server (But it is
I have code which performs query on Jboss server. It has JNDI based datasource
I have jboss server running with fr_CH locale and application client running with de_CH
I have a simple web service running on a JBoss server. Now I need
I have a JBoss 6 Server running which generates a big log file. Does
I am running an application on my system on JBOSS server which i can
I have been tasked with setting up a server for running JBoss presumably the
If I have a jboss server running on another machine and I scp my

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.