} catch (IOException e) {
e.printStackTrace();
}
}else {
try {
client = new Client(serverAddress);
client.connectToServer();
client.register(localTank, NetworkConstants.TANK);
} catch (UnknownHostException e) {
e.printStackTrace();
} catch (IOException e) {