Ruby
NOTE: The documentation below assumes either
FIXIE_URLorFIXIE_SOCKS_HOSTEnvironment Variables are set. If your application is deployed on either Heroku or Vercel via our official integration, these environments will be set for you. Otherwise, see the setup guide for the platform you are using in the Platforms section below for how to set them manually.
You can use Fixie with any Ruby http client. Included are examples of using it with Net::HTTP from the standard library and with popular rest-client or faraday gems.
Using rest-client
Using faraday
Using httparty
Using Net::HTTP from the standard library
Using net-sftp
Out of the box, any Ruby library that accepts Net::SSH::Proxy::SOCKS5 object can also use Fixie Socks. Here is a simple example of configuring the object that holds the proxy details:
Leveraging the example above, here is an example of making an SFTP request through Fixie Socks using net-sftp gem:
Related static IP guides
Platform-specific guides for giving your Ruby app a static outbound IP:
- Ruby on Heroku → API
- Ruby on Heroku → Postgres
- Ruby on Heroku → Redshift
- Ruby on Heroku → SFTP
- Ruby on Render → API
See the full list of static IP guides for every supported language, platform, and destination.
Is this guide useful?
Having issues? Please reach out to our team here.