getting host and port form environment