# File lib/rye/hop.rb, line 181
181:     def fetch_port(host, port = 22, localport = nil)
182:       connect unless @rye_ssh
183:       if localport.nil?
184:         port_used = next_port
185:       else
186:         port_used = localport
187:       end
188:       # i would like to check if the port and host 
189:       # are already an active_locals forward, but that 
190:       # info does not get returned, and trusting the localport
191:       # is not enough information, so lets just set up a new one
192:       @rye_ssh.forward.local(port_used, host, port)
193:       return port_used
194:     end