Run HTS on a Local Network or VPS
Running HTS on a Local Network or VPS is incredibly easy. This guide will walk you through the setup process so that you can connect to HTS from any computer that is connected to your local network. Additionally, you can use the same steps for a VPS configuration so that you can set up HTS on a Windows VPS and access it from any computer.
Running HTS on a Local Area Network (LAN)
The process consists of identifying the local IP address for the computer running HTS, and configuring windows firewall rules to allow both incoming and outgoing connections to the port we specify.
To do this, we need to run the command prompt. Simply hit the start button and type in "CMD" to open the windows command prompt.
Once the command prompt is open, type in the following:
Now look at the IPv4 Address. Write this down, as this is what we need. For me it was 192.168.2.4. You can also find the LAN IP by going to your routers settings.
Next go to the HTS menu on the left and go down to ----> Settings -----> Hosting
Now replace "Localhost" with the local IP address and optionally change the port number. I left it at 8090 for this tutorial. You will now want to go ahead and click "Save" which will restart HTS.
Now that we have configured HTS to use the local IP address, you will want to create 2 rules for Windows Firewall to open up both incoming and outgoing connections to that port.
To do this, we will go to control panel --> Windows Firewall.
Click on "Advanced Settings".
Doing so will bring up the Windows Firewall Rules. From here, right click on "Inbound Rules" then "New Rule."
A new window will show up. We want to select "Port" and then click "Next."
Now, we will want to select "TCP" and then type in the port you used in the HTS Settings. The default is "8090". Click "Next".
Select "Allow the Connection" and click "Next."
You can just leave this as is and click "Next."
We can give this rule a name. I used the name "Haasbots", but it can be anything you want it to be.
Now that we have made the "Inbound Rule" we need to repeat the process for creating an outbound rule. Go ahead and do the same thing for the "Outbound Rule."
HTS requires the use of two ports; 8090 and 8092. The second port is defaulted to 8092 and is used for the WebSocket. Repeat the process of creating inbound and outbound firewall rules for this port.
Now that we have done this, we can restart HTS. Once HTS has been restarted, right click HTS in the system tray and click "Open Interface." The new local IP address should have replaced "localhost" in the path and HTS is now accessible from any computer on your network!
To access HTS on another computer on your network, simply use this path template in your browser:
Setting this up for a windows VPS is exactly the same process, but instead of using the local IP address, you will use the public IP address of the VPS. Other than that, the process is exactly the same!
Note: HTS requires both a public and private IP Address. Be sure to contact a potential host beforehand and ask them if their VPS supports both of these.