I have a local network with DHCP and a few PCs. One of these should be my Server and get automatically connected to all others (clients). My idea was this: First, I create a
I've found a solution for my problem. It was just initializing the Socket not with
Socket s1 = new Socket("192.168.1." + i, 1254);
but with
Socket s1 = new Socket(); s1.setSoTimeout(200); s1.connect(new InetSocketAddress("192.168.1." + i, 1254), 200);
Thanks anyway!