Don't override host in get_bind_endpoint.

Issue DE206 

Also remove unused get_env_bind_endpoint.