Java Networking “Connection Refused: Connect”

后端 未结 5 2156
你的背包
你的背包 2020-12-16 19:32

I have been trying to get a simple networking test program to run with no results.

Server:

import java.io.*;
import java.net.*;

public class ServerT         


        
5条回答
  •  自闭症患者
    2020-12-16 20:01

    Likely the server socket is only being bound to the localhost address. You can bind it to a specific IP address using the 3-argument form of the constructor.

提交回复
热议问题