parse port correct and sets socket option SO_REUSEADDR for reusing the port after a crash