From: "mksm (Ricardo Amorim)" Date: 2012-06-22T10:15:09+09:00 Subject: [ruby-core:45773] [ruby-trunk - Feature #6617] Net::HTTP: Bind to a specific local IP/port Issue #6617 has been updated by mksm (Ricardo Amorim). I agree. You can pass both local_ip and local_port to TCPSocket.open in Net::HTTP#connect. Having the setter exposed would allow the user to change the local IP address between connections. Any ideas if this could cause problems with Net::HTTP or remote servers? There's also proxy and ipv6 support, both which I have never tested using this approach. ---------------------------------------- Feature #6617: Net::HTTP: Bind to a specific local IP/port https://bugs.ruby-lang.org/issues/6617#change-27351 Author: mksm (Ricardo Amorim) Status: Open Priority: Normal Assignee: Category: lib Target version: Despite having several solutions floating around the net, this feature is currently not present in Net::HTTP. I searched the issues but didn't find any discussion on this. How does the dev team feel about this? Can I submit a patch for revision? -- http://bugs.ruby-lang.org/