Victor Hans-Georg Waitz 2025-10-21 18:36:41 +02:00
parent aa5e3b0683
commit 9bbc0acae5
1 changed files with 1 additions and 2 deletions

View File

@ -22,8 +22,7 @@ public class Client {
DatagramPacket packetIn = new DatagramPacket(new byte[512], 512);
socket.receive(packetIn);
String received = new String(packetIn.getData(), 0, packetIn.getLength());
System.out.println("Received: " + received + "IP: " + packetIn.getSocketAddress());
System.out.println("Received from IP: " + packetIn.getSocketAddress());
}
catch (IOException e) {
e.printStackTrace();