Name is taken from the GUI, rest of the game is played over the terminal, you can watch the game from GUI. While it is your opponents turn you can't see the changes in GUI and it doesn't respond to interaction, don't close the window. Wait for your turn to see the changes.
$ python battleship.py 8888
$ python battleship.py 25.39.145.154 8888