@Override
    public void run() {
        try {
            MulticastSocket socket = new MulticastSocket(4446);
            InetAddress address = InetAddress.getByName("230.0.0.1");
            socket.joinGroup(address);

            DatagramPacket packet;

            byte[] buf = new byte[256];
            packet = new DatagramPacket(buf, buf.length);
            socket.receive(packet);

            window.RemotePlayer = new String(packet.getData(), 0, packet.getLength());

            socket.leaveGroup(address);
            socket.close();
        } catch (IOException ioe) {
            window.RemotePlayer = "ERROR: " + ioe.getMessage();
        }
    }