I m 测验Java的袖珍读/符合Oracle的基本范例。
It can read/write if I run both server and client in the same machine. But it doesn t work when it is to be read from other PC.
This is how they are connected via the same hub. Internet->local network->hub->PC1 and PC2
PC1 is a server, running KnockKnockServer.java. PC2 is a client, running KnockKnockClient.java.
一切都与KnockKnockClient.java相同,但:
kkSocket = new Socket("PC1", 18090);
But I got "Couldn t get I/O for the connection to: PC1" error.
I opened same port in Kaspersky program in PC1 and firewall in PC2. Even if I turned off Kaspersky and firewall in PC1, it shows the same error.
任何想法?
感谢