Mac OS Installation & Setup
Step 1: Install NodeJS
Download the current version of NodeJS from https://nodejs.org/en/
Step 2: Install the TQ Proxy Server
This establishes the connection with the gateway server and your TQ Proxy server.
- Open Finder and click on Applications in the sidebar. In the Utilities folder double-click on Terminal.
- In the terminal window type “sudo npm i @kloak-it/tq-proxy -g”
- When prompted by Password:, type in your user password, this is the password you use to log into your computer. (No text will appear in the terminal when typing in your password. If you make a mistake, try again.)
- Press the return key.
If your installation of the TQ Proxy Server was successful, your terminal window should look like the image below.
Step 3: Gateway setup
When you subscribe to a service plan you will receive files via email. One of these files is gateway.json. Download the gateway.json file.
- Open Finder.
- On your keyboard press command + shift + h to access your user folder.
- Drag the gateway.json file into your user folder.
Keep in mind the server may change, so you may need to replace the gateway.json file with a new one provided to you via email.
Step 4: Running local proxy server
In the Terminal window you used before, or a new Terminal window, type “tq-proxy -p gateway.json 8888” and press the return key.
The 8888 port number is used as an example and we highly recommend you use a port number between 1000 and 65535 so there is no interference as these ports are used less often.
Note that your terminal must be in the same location (directory) as the json file you created earlier. If you have not changed the location, you will not need to worry about this.
After you have run the command, your terminal should say “Gateway connect ready”, this means that you have successfully connected to the proxy server.
While you are using TQ proxy services, you must keep this terminal window open. To ensure no interference or other issues occur, only have one Terminal window running TQ. If you would like to stop the proxy, either exit the terminal or press control + c in the terminal.