public boolean start() {
		address = null;
		try {
			address = InetAddress.getByName(ip);
		} catch (UnknownHostException e) {
			e.printStackTrace();
		}
		Socket s;
		try {
			s = new Socket("google.com", 80);
			selfIP = (s.getLocalAddress().getHostAddress());
			if (selfIP == null) {
				internetConnected = false;
				selfIP = "None";
			}
			s.close();
		}
		catch (Throwable t) {	
		}
		if (!internetConnected)
			Game.Settings.currentNetworkState = NetworkState.CONNECTED_TO_NETWORK_NO_INTERNET;
        try {
			//socket = new Socket(address, 670);
        	socket = new Socket();
        	socket.connect(new InetSocketAddress(address, 670), 1000);
		} catch (IOException e) {
			e.printStackTrace();
		}
        doing = true;
		thread = new Thread(this);
		thread.start();
		return true;
	}