- TRose.exe @TRIGGER_SOFT@ _server your_server_ip
Note:
Other scenarios (at the end of the guide) are there too. When you have a dedicated servers, when your players play from your local network only, and when you play on the same computer as your Rose's server only.
I°) Example:
First of all, here is the example I'll talk about.
On this local network, there are several computers (from 192.168.0.101 to 192.168.0.103) and Rose is on the later one (192.168.0.103).
The internet IP (the one saw on internet) is 213.124.15.7.
The ports Rose uses are 29000, 29100, 29200.
II°) How to get your local IP:
You have to get your local IP so launch "Command prompt" (Start->Programs->Accessories->Command Prompt).
Once it's launched, type "ipconfig" and enter, you'll have the local IP (192.168.0.103), the mask (255.255.255.0) and the gateway (not really useful):
III°) how to get the internet IP:
Simply launch the website http://www.whatisyourip.com and you'll have it (here 213.124.15.7):
IV°) Forwarding ports to the server:
Now you must forward the ports to the server IP. So, we want to forward everything for Rose (ports 29000, 29100, 29200) to your server's IP (192.168.0.103).
So log in your modem / router (or router), and search for "port forward". The example here is for Linksys router, if you have a different one, use your imagination or even better... Google or your manual.
Sooo here we see that we want to forward ports 29000, 29100, 29200 (Both means TCP-IP and UDP) to local IP 192.168.0.103.
V°) Configuring servers:
You have to configure your .conf files for login, char and world servers.
It's pretty easy now that we have the local IP (192.168.0.103) and the internet IP (213.124.15.7).
The serverip if the internet IP.
The lanip is the local IP.
The lansubmask is the first three numbers of lanip=192.168.0.103, it's the "generic" part of your local IP.
It allows you playing from your local network as well as outside of it (see this thread).
Login server:
[SERVERDATA]
serverid=0
servertype=0
serverip=213.124.15.7
serverport=29000
servername=LoginServer
connection=2
lanip=192.168.0.103
lansubmask=192.168.0
Char Server:
[SERVERDATA]
serverid=1
servertype=1
serverip=213.124.15.7
serverport=29100
servername=char
parentid=0
accesslevel=100
connection=2
lanip=192.168.0.103
lansubmask=192.168.0
World server:
[SERVERDATA]
serverid=1
servertype=2
serverip=213.124.15.7
serverport=29200
servername=world
maxconnections=500
parentid=1
connection=2
lanip=192.168.0.103
lansubmask=192.168.0
VI°) testing if ports are opened:
Launch the servers (login, char and world) first of course.
Go to the website http://www.canyouseeme.org and enter your internet IP and a port to test (here 29000) to see if the port is opened correctly:
Here it failed ^_^
And here it works:
VII°) FAQ:
-> it's not working:
Check if your ISP isn't blocking the ports for Rose (29000, 29100, 29200).
-> my ISP isn't blocking the ports but it's not working:
Check if your firewall isn't blocking the ports (29000, 29100, 29200).
-> Still not working:
Sometimes the router needs to be rebooted.
-> Still not working:
Try to set ALL the IPs to the internet IP in the .conf file (serverip and lanip).
-> It worked, but now it's not working:
Check if your local computer has a "fixed" IP. Some computers don't set an IP and so each time you power it, his IP "can" change.
Here in this screenshot the local IP is fixed to 192.168.0.103:
To access this, right click on "My Network Places" then right click on your network interface, the properties on the "TCP/IP stack" and here you are.
To know what to enter, you'll have to know your gateway IP, your lan submask and the "IP range" your router can use. You can see most of it with ipconfig:
-> Still not working:
Try again.
-> I want my website (http) to be accessible from outside as well:
Simply port forward port 80.
-> I want my FTP to be accessible from outside as well:
Simply port forward port 21.
-> My players can play on my server, but I can't? I'm on my local network...
You need to setup the "lansubmask" correctly, check the guide.
-> How to launch the client and tell him which IP to use?
In osRose you can use a launcher (neoncube or others) or even a simple .bat file with inside:
So for example:
- TRose.exe @TRIGGER_SOFT@ _server 213.124.15.7
VIII°) If you have a dedicated server:
If your Rose's server is connected directly on internet like most dedicated servers are, you don't need to portforward and the configuration is very simple then:
Simply launch the website http://www.whatisyourip.com and you'll have it (here 213.124.15.7):
You have to configure your .conf files for login, char and world servers now.
It's pretty easy now that we have the local IP and internet IP which are the same (213.124.15.7).
The serverip if the internet IP.
The lanip is the local IP (which is also the internet IP here).
The lansubmask is the first three numbers of lanip=213.124.15.7, it's the "generic" part of your local IP.
It allows you playing from your local network as well as outside of it (see this thread), but it's not really useful in this scenario.
Login server:
[SERVERDATA]
serverid=0
servertype=0
serverip=213.124.15.7
serverport=29000
servername=LoginServer
connection=2
lanip=213.124.15.7
lansubmask=213.124.15
Char Server:
[SERVERDATA]
serverid=1
servertype=1
serverip=213.124.15.7
serverport=29100
servername=char
parentid=0
accesslevel=100
connection=2
lanip=213.124.15.7
lansubmask=213.124.15
World server:
[SERVERDATA]
serverid=1
servertype=2
serverip=213.124.15.7
serverport=29200
servername=world
maxconnections=500
parentid=1
connection=2
lanip=213.124.15.7
lansubmask=213.124.15
IX°) Players only connect from your local network:
This case is pretty easy too, it's when people are on your local network.
Get your Rose's server local IP:
You have to get your local IP so launch "Command prompt" (Start->Programs->Accessories->Command Prompt).
Once it's launched, type "ipconfig" and enter, you'll have the local IP (192.168.0.103), the mask (255.255.255.0) and the gateway (not really useful):
So in my example, your server is at IP "192.168.0.103" so people need to connect at that IP.
You have to configure your .conf files for login, char and world servers now.
It's pretty easy now that we have the local IP (192.168.0.103).
The serverip if the internet IP (which is also the local IP here).
The lanip is the local IP.
The lansubmask is the first three numbers of lanip=192.168.0.103, it's the "generic" part of your local IP.
It allows you playing from your local network as well as outside of it (see this thread), but it's not really useful in this scenario.
Login server:
[SERVERDATA]
serverid=0
servertype=0
serverip=192.168.0.103
serverport=29000
servername=LoginServer
connection=2
lanip=192.168.0.103
lansubmask=192.168.0
Char Server:
[SERVERDATA]
serverid=1
servertype=1
serverip=192.168.0.103
serverport=29100
servername=char
parentid=0
accesslevel=100
connection=2
lanip=192.168.0.103
lansubmask=192.168.0
World server:
[SERVERDATA]
serverid=1
servertype=2
serverip=192.168.0.103
serverport=29200
servername=world
maxconnections=500
parentid=1
connection=2
lanip=192.168.0.103
lansubmask=192.168.0
X°) You're playing on the same computer as the Rose's server (and only you are playing):
In this case, just put the localhost IP in your .conf file (127.0.0.1).
Login server:
[SERVERDATA]
serverid=0
servertype=0
serverip=127.0.0.1
serverport=29000
servername=LoginServer
connection=2
lanip=127.0.0.1
lansubmask=127.0.0
Char Server:
[SERVERDATA]
serverid=1
servertype=1
serverip=127.0.0.1
serverport=29100
servername=char
parentid=0
accesslevel=100
connection=2
lanip=127.0.0.1
lansubmask=127.0.0
World server:
[SERVERDATA]
serverid=1
servertype=2
serverip=127.0.0.1
serverport=29200
servername=world
maxconnections=500
parentid=1
connection=2
lanip=127.0.0.1
lansubmask=127.0.0