我有一个服务器地址,我想连接我的应用程序。
This is his address: "http://54.148.194.246:8080/".
我试图通过以下代码连接到它:
clientSocket = new Socket("http://54.148.194.246/", 8080);
但是我的应用程序给了我这个错误:
java.net.UnknownHostException: Unable to resolve host "http://54.148.194.246/": No address associated with host