Add accessor methods for host and port.