# How to use a particular interface in net/http

**URL:** <https://www.ruby-forum.com/t/how-to-use-a-particular-interface-in-net-http/176555>\
**Category:** Ruby\
**Created:** [October 2, 2009, 2:30am UTC](https://www.ruby-forum.com/t/how-to-use-a-particular-interface-in-net-http/176555 "2009-10-02T02:30:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![clipper](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/87869e/32.png) [@clipper](https://www.ruby-forum.com/u/clipper)\
**Post date:** [October 2, 2009, 2:30am UTC](https://www.ruby-forum.com/t/how-to-use-a-particular-interface-in-net-http/176555/1 "2009-10-02T02:30:18Z")

</div>

Hi,

Sorry if this has already been asked but I wasn’t able to find the  
response via search.

I’m doing some page scraping for a client and need to connect to their  
vpn server. So I have the vpn client running on my linux box, and this  
creates a new interface, say ppp0. Now, when I run Mechanize/open-uri,  
etc. I need to be able to bind specifically to this particular  
interface, because the other interfaces are to the internet in general.  
How do I do this?

Thanks

F
