Do connection before open port, fix overflow.