Example MQTT Proxy Setup

The following steps will allow you to remotely access an ARDI server as if it was running on your own system.

The script files involved both take either command-line parameters or can be given a shared JSON configuration file.

The example will use the HiveMQ public MQTT broker. Please note that this service should not be used for real-world situations.

Step 1: Install & Run Source Script

Copy the source.py script to the ARDI server you want to access.

Run the script, pointing it to the local computer and the MQTT broker…

python3 source.py http://localhost --mqtt=broker.hivemq.com --topic=ardi/proxy

Step 2: Install & Run Remote Script

Copy the remote.py script to your own PC.

Ensure that no real ARDI server or other programs that use port 80 (such as BranchCache or IIS) are running on your system.

Run the script, pointing it to the MQTT broker…

python3 remote.py --mqtt=broker.hivemq.com --topic=ardi/proxy

Ready To Go

Your proxy is now running. If you open your browser and go to http://localhost, you will open the ARDI content on the source machine as if it was running inside your network.

Note that this only gives access to web-based content, and only from the source ARDI server. Access is limited to simple web queries from the chosen server only.

However, certain features - such as access to AR and live data - won't work unless you enable HTTPS security.

If you want to make your connection to the MQTT server secure, you might also want to secure the MQTT connection.