Can't access Docker container by name in same network
问题 I've set up a very simple socket communication using the following Java classes: Server.java : public class Server { public static void main(String[] args) throws Exception { try (ServerSocket listener = new ServerSocket(59090)) { while (true) { try (Socket socket = listener.accept()) { Scanner in = new Scanner(socket.getInputStream()); while (in.hasNextLine()) { System.out.println("UPPER CASE: " + in.nextLine().toUpperCase()); } } } } } } Client.java : public class Client { public static