Net::HTTP::Local binds Net::HTTP requests to a local address and port.
Hakan Ensari
gem "net-http-local", "~> 0.1.2"