Skip to content

Heroku Static IPs with Noble IP

Heroku is a PaaS platform for quickly deploying apps. To make sure you can access firewalled or secure resources you can leverage Noble IP proxies to route traffic from a static IP.


If you need to access an HTTP/HTTPS API from your Heroku app, you can use a Noble Outbound proxy.

Start by signing up for an account and accessing the dashboard.

  1. Navigate to the Outbound Proxies tab and select Create Outbound ProxyCreate Outbound Proxy
  2. Once the proxy is created you will get 2 static IP address. You will need to white list both addresses. We provide 2 addresses for high availablity, in case one became unreachable, your service can failover to the other one.
  3. Make note of the Proxy Credentials. You will need this to utilize your proxy.


    Explore our documentation for indepth guides on intergrating with your language or platform of choice.


Once you have created the proxy, you will need to update your requests to utilize the proxy.

import fetch from "node-fetch";
import { HttpProxyAgent } from "hpagent";
const { HttpProxyAgent } = require("hpagent");
const response = await fetch("", {
  agent: new HttpProxyAgent({
    keepAlive: true,
    proxy: "",
import requests

proxies = {
  'http': '',
  'https': ''

response = requests.get('', proxies=proxies)
require 'net/http'

proxy_url = URI.parse('')
target_url = URI.parse('')

proxy = Net::HTTP::Proxy(, proxy_url.port, proxy_url.username, proxy_url.password)
response = proxy.start(, target_url.port, use_ssl: true) do |http|

puts response.body

Access a database, such as MongoDB, from Heroku with a Static IP

If you need to access a TCP service, such as a database via a static IP, Noble IP provides a number of different ways to get started.

Noble Tunnel

You can automatically route all traffic through the noble tunnel. This method works for most applications and does not require any code changes.

Create a new Tunnel

  1. Navigate to the Tunnels tab of your proxy and select Create Tunnel
  2. Configure the tunnel in the dashboard with the network wrapper mode: Create Outbound Proxy
  3. You can either choose to route all traffic through the proxy, or just specific IPs. Traffic in the private network range, or to localhost will never be routed through the proxy.

Download the Noble Tunnel application

Add Noble Tunnel program to the root directory of your application:

curl -LO
git update-index --chmod=+x noble-tunnel

Add your tunnel credentials to your configuration

Your tunnel token will be in the proxy's tunnel configuration page.

Tunnel Token

heroku config:set NOBLE_TUNNEL=tn_1234567

Modify your procfile

Your procfile will need to launch noble-tunnel.

web: bundle exec rails server -p $PORT // [!code --]
web: ./noble-tunnel -- bundle exec rails server -p $PORT // [!code ++]

Once your app is launched you should be able to track traffic usage in the dashboad.

If you need any help do not hesitate to contact us.