Add automatic free port detection and manual input of server IP