Fixed layout of main window. Resizing now works properly.
Added port to connection settings.