Auto find usable port by ServerSocket

Signed-off-by: coldnew <coldnew.tw@gmail.com>