read host and port from uri