max port is actually 65535
removed various sleep.