avoid getaddrinfo error when port argument is nil
record actual bind_host when provided value is nil