private Connection(String ip) throws UnknownHostException
	{		
		try
		{
			socket = new DatagramSocket(0);
		}
		catch (java.net.BindException e)
		{
//			try
//			{
//				socket = new DatagramSocket(1003);
//			}
//			catch (java.net.BindException ex)
//			{
//				ex.printStackTrace();
//			}
//			catch (SocketException e1)
//			{
//				// TODO Auto-generated catch block
//				e1.printStackTrace();
//			}
			e.printStackTrace();
		}
		catch (SocketException e)
		{
			e.printStackTrace();
		}
		
		port = 1001;
		
		SEND_TO_IP = InetAddress.getByName(ip);

		socket.connect(SEND_TO_IP, port);
		
		try
		{
			DatagramSocket receiver = new DatagramSocket(socket.getLocalPort() + 1);
			
			System.out.println("Receiver set to port: " + receiver.getLocalPort());
			
			new Thread(new Receiver(receiver)).start();
		}
		catch (SocketException e)
		{
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		try
		{
			Thread.sleep(100);
		}
		catch (InterruptedException e)
		{
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}