Support different ports to connect