Zerohero – Cross platform zeroconf microservice.

May 28, 2016 Node.js

I’ve created many applications where a user would have to enter the IP address of the server. For example, an iOS Netflix remote. You would run the server on your computer, open the iOS app, enter the server’s IP address, then you could control Netflix!

The problem is that most people don’t know what an IP address is, and they don’t want to know. So I tested many zeroconf solutions including UDP broadcasting and Bonjour. I needed a solution that would work for client side JavaScript though. Anything can make an HTTP call, so zerohero was born.

I’ve used a similar solution for years now, and I finally decided to rewrite it and put it online.

zerohero uses your external hostname to store and lookup servers. Servers hit the add endpoint, and clients hit list. It’s very easy to implement and you can get up and running with just a few lines a code. The goal here is to help clients find potential servers on the local network, after that it’s up to your application to handle the communication.

This is still very new, but I’ve been using it for a while now without issue. I personally host my server on Heroku, but any host with Node.js support should work. Check it out!

https://github.com/octalmage/zerohero



Powered by Gatsby and WordPress.