Finished the alert dialog and the rest with the port and timeout connection