linux的socket怎么连?

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

public class tests {

    public static void main(String[] args) {
        ServerSocket SERVER = null;
        try {
            SERVER = new ServerSocket(27628);
            Socket socket = SERVER.accept();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

}











import java.io.IOException;
import java.net.Socket;

public class testx {

    public static void main(String[] args) {
        String ip = "------------";
        try {
            Socket socket = new Socket(ip,27628);
            System.out.println("aaaaaaaaa");
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}

Linux如上tests  客户端为testx  //连接超时,windows可以连上,Linux连不上,怎么才能用

 

ip = "------------"; 这个都没有具体的地址,在连什么啊