1

Socket does not receive messages

view story
linux-howto

http://stackoverflow.com – I have written a simple client and simple udp server that needs to read string messages from particular port. here is the UDP-socket: public class UDPServer { // boolean variable defines if the infinite loop // in startServer() runs or not private boolean isSwitched = false; private DatagramSocket socket = null; public UDPServer(int port) throws SocketException { socket = new DatagramSocket(port); Logger.getLogger(Main.class.getName()).log(Level.INFO, "Server started! Bound to port: " + port); } //this method start the server and switch (HowTos)