Geek Alert: ngrok remote tunnels make connecting to devices on the boat easy

12 Jun


Prior to being a boating geek, I made my living running mission-critical computing operations for financial services firms. Which is to say I was a professional geek; I have a deep background in networking and still enjoy when I can use networking tools to make things easier. I have a lot of data on the NMEA 2000 network on Have Another Day but no way to access it all remotely. I’m getting ready to leave the boat for a few weeks so I really want to access all that data off the boat. After some digging for a way to make that off boat access possible, I found one with which I’m currently thrilled.

If I were at home with my cable internet connection I could configure port forwarding on my router to make a web server on an NMEA 2000 gateway available via the internet on the public IP of my internet connection.  But, on the boat I’m either connected to marina WiFi or via a cellular connection. Neither of these connections typically gives you a public IP — instead you get an address that looks like 192.168.x.x or 10.x.x.x which are RFC 1918 non-routable addresses designed for use on private networks — and without a public IP there’s not a way to make that web server available on the public internet.

My searches lead me to, a company who does nothing but provide tunnels for the remote access and management of devices. A lot of their customers are internet of things (IoT) companies who are deploying lots of little devices that they need to centrally manage. I was actually referred to them by Blue Guard Innovations who uses it in their BG-Link IoT boat monitor. What you see in the drawing above is a graphical representation of what ngrok accomplishes.

It might be easier to understand what ngrok does with a practical example, but first I want to make sure I’m clear about my relationship with Yacht Devices since I’m going to concentrate on one of their products. Prior to joining Ben Ellison at Panbo, I started Yacht Devices U.S., the U.S. distributor of Yacht Devices Limited’s excellent line of NMEA 2000 sensors, gateways and converters. I believe it’s critical to keep my work covering the marine electronics industry separate from my ownership of Yacht Devices U.S. so I’ve errored on the side of not covering Yacht Devices’ products. But, in this entry I’ll discuss the YDWG-02 NMEA 2000 to WiFi gateway, the built-in web gauges, and how I’m using them. There are other excellent products out there from companies like Maretron, Digital Yacht, and Actisense that do a lot of the same things, though each with their own unique features.

The Yacht Devices NMEA 2000 to WiFi Gateway (YDWG) makes all your NMEA 2000 data available to devices on your network so apps like Aqua Map, iNavX, and Navionics can access NMEA 2000 data.  The YDWG also features web gauges allowing nearly any data present on the NMEA 2000 network to be viewed in a web page that’s served up by a web server built into the YDWG. This is a great way for me to drop in and check on the boat. But, without a public IP on my internet connection there’s no obvious way to access these web pages remotely.  I needed to find a way to tunnel my connection out and make it available. That’s where ngrok comes in.

Setting up ngrok starts with a download of their executable to your computer.  For testing purposes, I ran the Windows version but I think I will probably move it over to a Raspberry Pi that is always on and running.  Pis are great for applications like this because at $35.00 per unit they’re very cheap and they use very little power.  Their program establishes a connection out from your computer to their servers and then starts listening for connections that destined for the service you’ve started publishing. So, in my case I told ngrok that I wanted the webserver for my YDWG to be available on the internet. Because I’m using a paid plan ($5 / month) I am able to use my own hostname, in my case, instead of a randomly assigned string (something like

So now when I want to check out what’s happening onboard I can fire up a browser and head to and check it out. If you want to take a look yourself you can use username and password of ydwg and see in real time what’s happening aboard.

Making it all work is pretty darn straightforward. When you sign up for an account — account options start at free and work their way up to as much as $12 a month depending on which features you need — you’re given an authtoken that needs to placed in the config file. From there you can configure individual tunnels. The free plan is limited to four tunnels, so you can make the web interface of four devices on your boat available.

If you’re looking for less of a DIY solution, FloatHub — which Ben E. has discussed — and other boat monitoring products make a lot of the same data available.  FloatHub’s WiFi only monitor does something very similar to what I’m doing but it’s all preconfigured for the user and a few of the components are moved around.  They use the internet connection on the boat to make a connection out to a server.  They then upload data that’s been collected from the device to the FloatHub server and in turn, make that available to the user via their web application.  In the case of what I’m doing that server is running on my boat and I’m using ngrok to make it accessible on the internet.

Up next for me will be making my Digital Yacht iKommunicate available remotely as well.  Signal K is designed for this sort of light-weight quick access to data, though the adoption has been spotty.

With both free and low-cost options, ngrok is exactly what I was seeking. I can now easily access devices I previously had to be physically on the boat to control. Now, since I’ll be able to access them remotely, my desire to link all the sensors on my boat to either NMEA 2000 or by IP is even stronger.

This article was syndicated from Panbo


  1. Central IT

    Have you ever considered creating an e-book or guest authoring on other sites?
    I have a blog centered on the same information you discuss
    and would love to have you share some stories/information. I know
    my audience would value your work. If you are
    even remotely interested, feel free to send me an email.

  2. Prodigy 7

    What’s up everybody, here every one is sharing such know-how,
    thus it’s pleasant to read this blog, and I used to pay a
    visit this webpage every day.


    The online video games has produced its market across the world and entertaining many players of the age group.

    One of the most popular sites that the teens may want to visit is decorate the portals that incorporate
    games for teens that they may enjoy. Usually many gamblers lose a
    good deal given that they are not able to distribute their
    set budget.

  4. Erika

    You probably know already that these gaming machines are extremely popular
    all over the world and when you haven. She arrived, in their own late teens, at La Guardia airport
    and took taxis to Times Square. Those who are enthusiastic about participating with this level must audition first prior to getting accepted on the


    She had an additional tape come out, which included
    a relevant video of her lounging inside the bathtub flanked by
    bubbles and just enjoying herself. If you can find the
    required time, why not become an activist fighting for the bird’s right.
    She has released her first album to tepid sales, but has already established some success
    with several acting projects she’s got done.

  6. Kerri

    Of course, in case you opt for a free site, you could
    have a lot more than social contact based upon your mood and also the friends you make on each site.

    Now, to obtain quite near to the face, all you need is
    a great date with him or her o about come up with a comfortable place in their heart.
    Once they are successful in their career and accomplish anything they want, they realize the significance of marriage.


    This is the right blog for everyone who hopes to find out about this topic.
    You know so much its almost hard to argue with you (not that I really will need to…HaHa).

    You definitely put a brand new spin on a subject that’s been discussed for a long time.
    Great stuff, just excellent!

  8. flap hat

    What’s up all, here every one is sharing these kinds
    of experience, therefore it’s good to read this web site, and I used to visit this website daily.

  9. chiffon dress

    Excellent beat ! I wish to apprentice even as you amend your website, how could i subscribe for a blog site?
    The account helped me a appropriate deal. I have been tiny bit acquainted of this your broadcast provided vivid transparent idea

  10. Starfall 1

    Right here is the right site for everyone who wishes
    to find out about this topic. You understand
    a whole lot its almost hard to argue with you (not that I personally would want to…HaHa).
    You certainly put a fresh spin on a subject which has been discussed for a long
    time. Great stuff, just excellent!

  11. informatie

    In the event of boiler failure in the future, users of these
    machines can just replace the heating rod and
    continue using their machine for decades to come.

    The future is broad and could result in many new devices along with applications for them.
    Before the project begins, you and also the commercial or industrial painting
    contractor must have the identical expectations and the same vision for
    which should unfold.

  12. sandals info

    You could definitely see your expertise in the work you write.
    The arena hopes for even more passionate writers like you who aren’t afraid to mention how they believe.

    All the time go after your heart.

  13. Starfall 1000

    Great blog! Do you have any recommendations for aspiring writers?
    I’m planning to start my own site soon but I’m a little lost on everything.

    Would you recommend starting with a free platform like WordPress
    or go for a paid option? There are so many options out there
    that I’m totally overwhelmed .. Any recommendations?
    Many thanks!

  14. Starfall 3

    It’s actually a great and useful piece of information. I am satisfied that you simply shared this helpful info with us.
    Please keep us up to date like this. Thank you
    for sharing.

  15. carros nuevos santo domingo

    Yo simplemente no podía partir su sitio web antes de
    sugiriend que extremadamente disfruté lo habitual información
    un inbdividuo suministro para su invitados? ¿ va a esar de vuelta a menudo a retirar
    nuevos mensaje estaré agradecido para aquellos continúe esto en futuro.

    Un montón de personas
    Estoy extremadamente inspirado junto con tuu escritura habiidades comko inteligentemente
    como con el formato a su weblog. ¿Es esto un tema paggado o lo personalizó usted
    mismo ? De cualquier manera mantener la escritura agadable calidad , es raro ver un bonito blog como este
    hoy en día .. información . Suerte conmigo
    Encontré suu sitio web por casualidad (tropiezo). Tengo marcado como favorito para
    más tarde |
    Es genial que estás obteniendo pensamientos de este escrito así comjo de nuestro argumento hecho en este momento.|
    Si dessea mejorar su experiencia solo siga viitando
    este sitio web y se actualizará con ell el más
    reciente chismes publicado aquí. |
    Lo que está sucediendo soy nuevoo een esto, mme topé con esto tengo descubierto
    absolutamente útil y mme ha ayudado mucho. Espero
    dar una contribución y ayuda otro cljentes como ayuda
    a mí. Grran trabajo. |
    Hurray, eso ess lo que esaba buscando , ¡qué material!
    existente aquí en este página web , gracias
    administrador de este sitio . |
    Wow este blog es magnífico realmnte me gusta leer tus publicaciones.
    ¡ Keep hasta eel good trabajo! Reconoces , muchos
    las personas son buscando ronda para esta información ,
    podrías ayudar mucho.

Leave a Reply

Your email address will not be published. Required fields are marked*. Comments are moderated and generally will be posted if they are on-topic and not abusive. For more information, please see our Comments Policy.

More from the AIM Marine Group