Interpolate host and port with %h and %p.