Support for custom port number in server and client. Connect button
changes appearance to reflect connection state.