public void startServer(int port)
	{
		try
		{
			ms = new MulticastSocket();
			UDPsocket = new DatagramSocket(port);
			listener = new ServerListener();
			ping = new Thread(new Ping());
			listener.start();
			ping.start();

			GUI.addMessage("Server running on socket " + port);
			GUI.btnStartServer.setVisible(false);
			GUI.btnStopServer.setVisible(true);
		} catch (SocketException e)
		{ // Default message if port is already in use
			GUI.addMessage("Unable to start server on socket " + port
					+ ". Please try another");
			e.printStackTrace();
		} catch (IOException e)
		{
			e.printStackTrace();
		}
	}