Move the host and port into the application environment.