Run Haasbot on a Local Network or VPS
Running Haasbot on a Local Network or VPS is incredibly easy. This guide will walk you through how to set up haasbot so that you can connect to it 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 Haasbot on a Windows VPS and access it from any computer.
Running Haasbot on a Local Machine
The first thing we need to do is to make sure that Haasbot has been installed and Haasbot has been set up. Once we have done this, we can begin. The process consists of figuring out what the local IP address is for the computer running Haasbot on our local computer and to set up the windows firewall to allow both incoming and outgoing connections to the port we specify.
So, the first thing we need to do is to figure out what the local IP address is for the computer that you want to run Haasbot off of. To do this, we need to run the command prompt. Simply hit the start button and type in "CMD" and then open it.
Once 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 figure this out by going to your router settings.
The next thing we need to go is to menu on the left and go down to ----> Settings -----> Hosting
Now we need to replace "Localhost" with the local IP address and change the port or leave it as 8090. I left it at 8090 for this tutorial. You will now want to go ahead and click "Save" and Haasbot will restart.
Now that we have configured Haasbot 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.
From here, we need to 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 and we want to select "Port" and then click "Next."
Now, we will want to select "TCP" and then type in the port you set up in Haasbot Settings. I am using the default of "8090," then click "Next."
Next, we want to select "Allow the Connection" and click "Next."
You can just leave this as it is and click "Next."
We can give this rule a name. I used the name "Haasbot," 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 "Outbound Rule."
Now that we have done this, we can restart Haasbot. Once Haasbot has been restarted, right click Haasbot in the system tray and click "Open Interface." The new local IP address should have replaced "localhost" in the path and Haasbot is now accessible from any computer on your network!
To access haasbot 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: Haasbot requires both a public and private IP Address. Be sure to contact a potential host before and ask them if their VPS supports both of these.