choose port of the test server automatically, don't panic while reading frames