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.
1. Open Command Prompt in administrator mode by clicking the Windows start button and typing “CMD”.
2. When Command Prompt is highlighted, click on “Run as administrator” on the right.
3. In the Command Prompt window type “npm i @kloak-it/tq-proxy -g”
4. Press the Enter key.
If your installation of the TQ Proxy Server was successful, your Command Prompt window should look like the image below.
When the download has completed, close the Command Prompt window.
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.
Step 4: Open explorer by clicking on the Windows start button and clicking on Documents in the bottom left.
Step 5: In your explorer window,
- Click on “This PC” in the sidebar on the left.
- Double-click Local Disk (C:).
- Double-click Users.
- Double-click the folder with your username.
Step 6: 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 7: Open a new Command Prompt window with Open instead of opening as an administrator.
If you still have the administrator Command Prompt window opened from before, close it.
Step 8: Running local proxy server
In the Command Prompt 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 Command Prompt must be in the same location (directory) as the json file you created earlier (Users folder). If you have not changed the location, you will not need to worry about this.
After you have run the command, your Command Prompt 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 Command Prompt window open. To ensure no interference or other issues occur, only have one Command Prompt window open while using the proxy. If you would like to stop the proxy, either close the Command Prompt window or press control + c in the Command Prompt window.