If you want your friends to be able to connect to you, you need to buy a server that will host your emulator and OpenServer.
- Click on the link: GET YOUR 50$ for account (or this link)
- Load money for VPS
- Click on + and create VPS
Guide how to make VPS
Note: you can use 7zip (free archiver) https://www.7-zip.org/ to extract data from archives. Download and install it too, it will be required for you.
Download and install Microsoft Visual C++ 2015 Redistributable by link below: https://www.microsoft.com/en-us/download/details.aspx?id=52685
At this point you have installed in 15 steps all your server online. Now you need just edit sclientinfo.xml inside your data/ folder and change 127.0.0.1 to ip address of your server. And now you can give your friend the client and he will be able connect to you.
That it! Now you will be able to connect to the server. But before that, we need to open ports for our emulator only.
For that we need.
- Now let's open 6900, 5121, 6121 ports for our emulator on our VPS (https://www.vultr.com/docs/how-to-open-a-port-in-windows-firewall-on-windows-server-2012)
a.) Click On server manager b.) select "Local Server" c.) Click on "Windows Firewall: PUblic: On" (on public On) d.) Will be opened a new window where you can control windows firewall. (Control Panel\System and Security\Windows Firewall) e.) Inside this window click "Advanced Settings" at left sidebar f.) Will be opened Windows Firewall Window g.) Now click on "Inbound Rules" at left Sidebar, and then click on "New Rule" button at right sidebar.
h.) Select "Port", and click on Next Button
i.) Select "TCP", Select "Specific Ports", and enter: "5121, 6121, 6900" this is ports used by emulator (login, char, map servers)
And click on next button.
j.) Now select "Allow the Connection" (first option) and click on Next button.
Now again click next
k.) select name for your firewall Rule, and description, and finally click on "Finish"
At this step you opened: 6121, 5121, 6900 ports to internet. So you can now connect from your computer to your server.