### English ###
Hey guys, as promised, in this tutorial I'm going to briefly explain how to port forward your bot to allow other users to access it's UI. I will also teach you how to change your port, if you already use it for something else, or want something easier to remember.
Please note that everyone will have different steps dependent on your router. If you get confused or can't find something, please check your router's manual.
The following are really simple explinations on how to access and change your listening port, and therefore your UI Port.
Go to your install directory, default is something like c:\Sinusbot\
Find your config.ini, open in a text editor (e.g. Notepad) and change the following line:
Once this is changed, you will need to update all port forwarding to recognize the new port
Find your config.ini, open in a text editor (e.g. Notepad) and change the following line:
Code:
ListenPort = 8087
To Change your listening port, do the following:
You should then have the option to change the following:
Close the editor (Ctrl+O, Enter, Ctrl+X)
Once this is changed, you will need to update all port forwarding to recognize the new port
Code:
cd /home/sinusbot
nano config.ini
Code:
ListenPort = 8087
Once this is changed, you will need to update all port forwarding to recognize the new port
-- This Tutorial is designed for windows 10
Pre-requisites/Required
Step one - Windows firewall
First of all, you shall need to launch into your firewall settings. To do this,t he fastest way is by pressing the Windows key + R and typing wf.msc at the Run window, or you can go Control pannel > System and Security > Windows Firewall > Advanced Settings
Click on your inbound rules, on the right hands side, you should get the option to create a New rule. Click it and it will open up the Wizard
Select Port, and click next. On the next page, it will ask what type of port and the port number. This bot is using TCP ports, so select TCP, then put your port (default 8087) in the specific local ports section. Hit next, The next page will ask what type of connection you want, Leave that as the default for your pc, it will then ask when to apply the rule, insure all are active (Domain, Private, Public).
Name your rule, I would suggest "Sinusbot" for simplistic finding in the future.
Step two - Router Services
Most routers are different, so please check your manual to find the following services.
Go to your router settings on 192.168.0.1
You need to find your services section, it should look similar to the picture below (probably less ports open), Click the "add Custom service" (or simular) option
Give your service a easy to remember name (e.g. Sinusbot), once again, you want to select the type TCP and then specify the port (default is 8087) for both the start and finish ports
Save this, and head over to your Firewall settings on your router. Fill in each of the section with the following:
Pre-requisites/Required
- User Manual for your Router
- Administrative access for computer
- Administrative access for router
- Knowledge of your IP local Address
- Click on the Start menu and type cmd. When you see the cmd applications in Start menu panel, click it or just press enter.
- A command line window will open. Type ipconfig and press enter.
- You'll see a bunch of information, but the line you want to look for is "IPv4 Address."
- Sinusbot listen port number
By Default, this should be 8087, if you have changed this, it is found within your config.ini:
Code:ListenPort = 8087
Step one - Windows firewall
First of all, you shall need to launch into your firewall settings. To do this,t he fastest way is by pressing the Windows key + R and typing wf.msc at the Run window, or you can go Control pannel > System and Security > Windows Firewall > Advanced Settings
Click on your inbound rules, on the right hands side, you should get the option to create a New rule. Click it and it will open up the Wizard
Select Port, and click next. On the next page, it will ask what type of port and the port number. This bot is using TCP ports, so select TCP, then put your port (default 8087) in the specific local ports section. Hit next, The next page will ask what type of connection you want, Leave that as the default for your pc, it will then ask when to apply the rule, insure all are active (Domain, Private, Public).
Name your rule, I would suggest "Sinusbot" for simplistic finding in the future.
Step two - Router Services
Most routers are different, so please check your manual to find the following services.
Go to your router settings on 192.168.0.1
You need to find your services section, it should look similar to the picture below (probably less ports open), Click the "add Custom service" (or simular) option
Give your service a easy to remember name (e.g. Sinusbot), once again, you want to select the type TCP and then specify the port (default is 8087) for both the start and finish ports
Save this, and head over to your Firewall settings on your router. Fill in each of the section with the following:
Code:
Service: <Service name you just made>
Action: ALLOW Always
Send to LAN server: <Your local ip address>
WAN Users: Any
Start: (leave blank)
Finish: (leave blank)
log: (this is up to you, I always log)
(this bit may need some correcting, I didnt have access to my Vb at time of writing)
#This tutorial is assuming that you are not running a instance of this bot from the host pc#
Pre-requisites/Required
- User Manual for your Router
- Administrative access for computer
- Administrative access for router
- Sinusbot listen port number
By Default, this should be 8087, if you have changed this, it is found within your config.ini:
To access this, do the following:
Code:cd /home/sinusbot nano config.ini
Code:ListenPort = 8087
Step one - Finding / Setting your IP
First of all, ensure that your server is shut down. Go into your settings > Network
Go onto your second adapter and activate it, Choose a Bridged Networking from the drop down and select the network card from your Host PC which you plan on using.
Start up your Service, and login to your user.
Once logged in, you will need to do the following commands to find your internal IP:
Code:
ifconfig -a
{image to come}
Step two - Router Services
Most routers are different, so please check your manual to find the following services.
Go to your router settings on 192.168.0.1
You need to find your services section, it should look similar to the picture below (probably less ports open), Click the "add Custom service" (or simular) option
Give your service a easy to remember name (e.g. Sinusbot), once again, you want to select the type TCP and then specify the port (default is 8087) for both the start and finish ports
Save this, and head over to your Firewall settings on your router. Fill in each of the section with the following:
Code:
Service: <Service name you just made>
Action: ALLOW Always
Send to LAN server: <Your local ip address>
WAN Users: Any
Start: (leave blank)
Finish: (leave blank)
log: (this is up to you, I always log)
To connect to your user interface now you have port forwarded you can use your external Ip. This allows other users to also connect.
To find your external ip, go to http://www.whatsmyip.org/ and send it to your friends with the port number you just opened!
Let me know if there are any corrections to be made, or if you want me to explain anything!
Last edited: