[GUIDE] IP/Port Forwarding for osRose

Welcome in the osRose emulator Project.

Moderators: osRose dev team, ospRose dev team, osiRose dev team, Moderators

[GUIDE] IP/Port Forwarding for osRose

Postby lmame on Sun Apr 19, 2009 5:14 pm

Here is a quick guide so players outside your local network can access your Rose server.


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.
port_forward.jpg



II°) How to get your local IP:
You have to get your local IP so launch "Command prompt" (Start->Programs->Accessories->Command Prompt).
cmd.png


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):
ipconfig.png
ipconfig.png (8.34 KiB) Viewed 87949 times



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):
whatismyip.png



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.
linksys.jpg



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 ^_^
canyouseeme.png


And here it works:
canyouseemeok.png



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:
fixedip.png


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:
  1. TRose.exe @TRIGGER_SOFT@ _server your_server_ip

So for example:
  1. 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:
dedicated.jpg


Simply launch the website http://www.whatisyourip.com and you'll have it (here 213.124.15.7):
whatismyip.png


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.
local.jpg


Get your Rose's server local IP:
You have to get your local IP so launch "Command prompt" (Start->Programs->Accessories->Command Prompt).
cmd.png


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):
ipconfig.png
ipconfig.png (8.34 KiB) Viewed 87949 times



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
The world is full of love and peace ^_^
Image
User avatar
lmame
Admin
Admin
 
Posts: 8997
Joined: Mon Aug 06, 2007 4:42 pm
Location: July City

All is working but

Postby sintaro on Sun Apr 19, 2009 6:02 pm

all is working now....
but when i wanna log in the game....

it tell server is under maintenance
sintaro
Smoulie
Smoulie
 
Posts: 40
Joined: Sun Apr 19, 2009 3:11 pm

Re: [GUIDE] IP/Port Forwarding for osRose

Postby lmame on Sun Apr 19, 2009 6:06 pm

Wrong IP's or whatever...
Your players can connect successfully but you can't connect from your local network?

Btw, you can't have both things, if your players can connect from outside your network, you can't connect from your local network, something like that.
The world is full of love and peace ^_^
Image
User avatar
lmame
Admin
Admin
 
Posts: 8997
Joined: Mon Aug 06, 2007 4:42 pm
Location: July City

Re: [GUIDE] IP/Port Forwarding for osRose

Postby sintaro on Sun Apr 19, 2009 6:12 pm

My IP is rite....

all port is listening it mean okies rite?

i don't know if my player can log in coz there no player right now...

wonder why i can't log in
sintaro
Smoulie
Smoulie
 
Posts: 40
Joined: Sun Apr 19, 2009 3:11 pm

Re: [GUIDE] IP/Port Forwarding for osRose

Postby lmame on Sun Apr 19, 2009 6:17 pm

If you play only "localy" then try changing all the the IPs to 127.0.0.1 or to your local IP only so you'll know.
The world is full of love and peace ^_^
Image
User avatar
lmame
Admin
Admin
 
Posts: 8997
Joined: Mon Aug 06, 2007 4:42 pm
Location: July City

Re: [GUIDE] IP/Port Forwarding for osRose

Postby sintaro on Sun Apr 19, 2009 6:23 pm

i have done it....

ALL I PUT MY LAN IP

i can log in the game and play the game

but when i'm changing login,char,wolrd.conf with

[SERVERDATA]
serverid=0
servertype=0
serverip=MY WAN IP
serverport=29000
servername=LoginServer
connection=2
lanip=MY LOCAL IP
lansubmask=MYSUBMASK

then i enter the game i can't log
sintaro
Smoulie
Smoulie
 
Posts: 40
Joined: Sun Apr 19, 2009 3:11 pm

Re: [GUIDE] IP/Port Forwarding for osRose

Postby Mike567 on Sun Apr 19, 2009 6:36 pm

hmmm...

i try it all.. but its still now working.... i try again... still not working....

help me pls... maybe in this screen? that i circled..

Image
User avatar
Mike567
Antares
Antares
 
Posts: 392
Joined: Wed Mar 19, 2008 4:27 am
Location: Philippines

Re: [GUIDE] IP/Port Forwarding for osRose

Postby lmame on Sun Apr 19, 2009 6:39 pm

sintaro wrote:i have done it....

ALL I PUT MY LAN IP

i can log in the game and play the game

but when i'm changing login,char,wolrd.conf with

Like I said, if you do this, there are chances you CAN'T play from your local network.
The world is full of love and peace ^_^
Image
User avatar
lmame
Admin
Admin
 
Posts: 8997
Joined: Mon Aug 06, 2007 4:42 pm
Location: July City

Re: [GUIDE] IP/Port Forwarding for osRose

Postby lmame on Sun Apr 19, 2009 6:39 pm

Mike567 wrote:hmmm...

i try it all.. but its still now working.... i try again... still not working....

help me pls... maybe in this screen? that i circled..


No.
Check if your ISP blocks the ports.
The world is full of love and peace ^_^
Image
User avatar
lmame
Admin
Admin
 
Posts: 8997
Joined: Mon Aug 06, 2007 4:42 pm
Location: July City

Re: [GUIDE] IP/Port Forwarding for osRose

Postby sintaro on Sun Apr 19, 2009 6:44 pm

"Like I said, if you do this, there are chances you CAN'T play from your local network."

Then what should i do if i wanna play in the game also
sintaro
Smoulie
Smoulie
 
Posts: 40
Joined: Sun Apr 19, 2009 3:11 pm

Next

Return to Support - OsRose Emulator

Who is online

Users browsing this forum: No registered users and 12 guests