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.