What is a work around for Connection refused: connect

后端 未结 2 2030
北海茫月
北海茫月 2021-01-27 22:32

I am trying to pull information from another site. When I try and do

URL url = new URL(\"theSite\");
url.getContent();

It throws a Conne

2条回答
  •  滥情空心
    2021-01-27 22:56

    See if the site is up and running or not by opening it in the browser. The other thing you might want to check is for any firewall stopping java process to connect.

提交回复
热议问题