TM-FORUM

The TrackMania universal forum ^_^
It is currently 20 Feb 2017 10:28

All times are UTC + 1 hour




Post new topic Reply to topic  [ 29 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: [TUTORIAL]Connecting to his own dedicated...in internet mode
PostPosted: 06 Aug 2007 00:51 
Offline
Pit Crew
Pit Crew
User avatar

Joined: 05 Sep 2005 18:51
Posts: 2124
Location: TraxicoLand (Fr)
Owned TM-games: ALL
First required
- Having a working dedicated (ie other players can connect).
- Havig setup different ports for the dedicated and the game (for example, keep 2350 and 3450 for the game, and set 2352 and 3452 for the dedicated)


What's the problem ?
Using some nat-router modems, ports redirections don't work for connections from local network, or at least when the connexion come from the computer there are redirected to. If you have a router which refuse such redirection, you just can't connect to your TM dedicated server in internet mode (so, no ladder ;) ).


Solution
Thanks to Mistral for the idea, and you can find some additional info here too.

You will have to add the public IP of your internet connection to the network adapter of the computer on which you start the dedicated. If the game and the dedicated are not on the same computer, you will have something else to do, see below.

In the example, the public IP is 82.125.58.101, and the local IP of the server is 192.168.1.210. Of course you will have to replace them by yours IPs ! To find your public IP, you can for example go there.

Note: because of pending connections of your(s) computer(s) and router, it can take some minutes to work after a correct configuration ! (you can try to reboot computer(s) and router too)

Server on Windows
If your adapter IP is in automatic (DHCP) mode, you have to reconfigure it static. Open a command line interface and use 'ipconfig /all', you will get the infos about actual connection, and use it to configure static values, just change the IP address 4th number (you have to set an address unused on your network, in the example, i set 210)


Sorry, the screenshots were made on a french Windows :( , anyway you should be able to recognise the panels ;)

Image

Image

Image

When the public address will be added to your adapter, then if the game and the computer are on the same computer, it should work :D

Of course, if you don't have a fixed public address, you will have to change the config each time your public IP change...


Server on Linux
For a Debian or Ubuntu, edit the file /etc/network/interfaces and add an alias to your network adapter. You will add something looking like that :
Code:
auto eth0:0
iface eth0:0 inet static
        address 82.125.58.101
        netmask 255.255.255.0

then use the command ''ifup eth0:0' (or restart the computer)
(you have to be root to edit the file and use ifup, on ubuntu, use 'sudo ')

For other linux, look for ip config and aliases in the documentation.


If the game is on another computer
After the upper changes on the server, you will have 2 possibilities to make a working change on the client :
- add a second IP to the client too, in the same LAN IP than the one you added for the server (with previous example, i could have used 82.125.58.102). Same method than before to add the IP.

or

- tell to the compute how to reach the server, giving him a static route. To do that, open a command line interface and use (with your own IP, not the example ones) :
route add 82.125.58.152 192.168.1.210
What it means is: to join 82.125.58.152, send to 192.168.1.210. So the server will receive it, and because 82.125.58.152 is also his IP, he will be happy and be able to reply :D

If you have a fixed IP and want to make this static route permanent (and so don't use the command each time you restart your computer), add a -p : route -p add .....

Image

It should work, else re-read all, you probably missed something (hey, you did not used the IP of the example i hope ? ^^)


Some other way to do things (written here by Mistral long time before this tutorial)
Mistral wrote:
For windows if server+client are on the same machine and your router denies connections from inside (LAN) to outside (WAN) address:
- find out your WAN-IP (ip address of your router) f.e.: http://www.meineipadresse.de/ip.php
- find out the name of your IP interface: Start -> Run... -> ipconfig.exe (you need a static configuration, its not possible to add interfaces with DHCP enabled)
Code:
Ethernet adapter Local Area Connection:

        Connection-specific DNS Suffix  . :
        IP Address. . . . . . . . . . . . : 10.10.1.247
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . :

Here it is "Local Area Connection"

- open a command line as administrator: Start -> Run... -> cmd.exe
- type
Code:
netsh interface ip add address <NAMEOFINTERFACE> <WANIP> 255.255.255.0

Example:
Code:
netsh interface ip add address "Local Area Connection" 1.2.3.4 255.255.255.0


This will ADD the WAN address of your router to your local interface. This means when ever you try to connect to the OUTSIDE address of your router (you normaly dont do this - but you have to for trackmania, because thats the address of your server stored in the masterserver's database) the request will goto the local interface.

You can also ADD the address using the TCP/IP settings window, but i am not going to make screenshots and explain where you have to click ;)

When you are done or your DSL router gets a new address, you should delete the entry and redo above with new address.
Code:
netsh interface ip delete address <NAMEOFINTERFACE> <OLDWANIP>


Top
 Profile  
 
 Post subject: Re: [TUTORIAL]Connecting to his own dedicated...in internet mode
PostPosted: 29 Dec 2007 14:47 
Offline
highway camper
highway camper

Joined: 29 Dec 2007 14:38
Posts: 3
Owned TM-games: TMU
Mistral wrote:
Code:
netsh interface ip add address <NAMEOFINTERFACE> <WANIP> 255.255.255.0

Example:
Code:
netsh interface ip add address "Local Area Connection" 1.2.3.4 255.255.255.0


This will ADD the WAN address of your router to your local interface. This means when ever you try to connect to the OUTSIDE address of your router (you normaly dont do this - but you have to for trackmania, because thats the address of your server stored in the masterserver's database) the request will goto the local interface.



Then i did that command line write my WANIP a table wiht adress conflict shows up;// Why? My static ip is 10.0.x.x and WANIP 84.32.x.x.


Top
 Profile  
 
 Post subject: Re: [TUTORIAL]Connecting to his own dedicated...in internet mode
PostPosted: 29 Dec 2007 17:59 
Offline
Pit Crew
Pit Crew
User avatar

Joined: 02 May 2006 16:13
Posts: 1304
Owned TM-games: tmuf
Even your doublepost wont help us to find your mistake.

_________________
Image

Link: How to get your own banner of your ranking at Mistral World Selection


Top
 Profile  
 
 Post subject: Re: [TUTORIAL]Connecting to his own dedicated...in internet mode
PostPosted: 29 Dec 2007 18:57 
Offline
Pit Crew
Pit Crew
User avatar

Joined: 05 Sep 2005 18:51
Posts: 2124
Location: TraxicoLand (Fr)
Owned TM-games: ALL
Ezlock wrote:
Then i did that command line write my WANIP a table wiht adress conflict shows up;// Why? My static ip is 10.0.x.x and WANIP 84.32.x.x.

Did you try a 'ipconfig /all' to verify your actual config ? are you sure your actual interface ip is static (ie not in automatic dhcp mode) ?


Top
 Profile  
 
 Post subject: Re: [TUTORIAL]Connecting to his own dedicated...in internet mode
PostPosted: 02 Jan 2008 11:25 
Offline
highway camper
highway camper

Joined: 29 Dec 2007 14:38
Posts: 3
Owned TM-games: TMU
Yes i try ipconfig by tutorial, my ip is internal and DHCP is disabled;/ So what to do now? :?


Top
 Profile  
 
 Post subject: Re: [TUTORIAL]Connecting to his own dedicated...in internet mode
PostPosted: 03 Jan 2008 01:13 
Offline
Pit Crew
Pit Crew
User avatar

Joined: 05 Sep 2005 18:51
Posts: 2124
Location: TraxicoLand (Fr)
Owned TM-games: ALL
Ezlock wrote:
Yes i try ipconfig by tutorial, my ip is internal and DHCP is disabled;/ So what to do now? :?

Don't know, it should not happen if you are sure that not other computer in your LAN has that ip, and that no other interface of your computer has that ip.

Perhaps that strangely some modem-router set their public ip on their LAN interface ? if really it's the case then i see no solution.


Top
 Profile  
 
 Post subject: Re: [TUTORIAL]Connecting to his own dedicated...in internet mode
PostPosted: 12 Jan 2008 19:09 
Offline
highway camper
highway camper

Joined: 08 Jan 2008 17:16
Posts: 3
Owned TM-games: trackmania nations
All that dosent work whit a internet card/infared net so can you help me where it's whit a card and not cable on an english pc please :D


Top
 Profile  
 
 Post subject: Re: [TUTORIAL]Connecting to his own dedicated...in internet mode
PostPosted: 12 Jan 2008 19:10 
Offline
highway camper
highway camper

Joined: 08 Jan 2008 17:16
Posts: 3
Owned TM-games: trackmania nations
ohh and my net goes over my moms 100 mbit those it has anything to say Sry for bad english


Top
 Profile  
 
 Post subject: Re: [TUTORIAL]Connecting to his own dedicated...in internet mode
PostPosted: 04 Feb 2008 13:57 
Offline
wheelbarrow operator
wheelbarrow operator

Joined: 04 Feb 2008 01:04
Posts: 18
Owned TM-games: Trackmania United
nothing... i've done everything but my pc said that there is a IP conflict... and i can't join ladder... anyone? Image


Top
 Profile  
 
 Post subject: Re: [TUTORIAL]Connecting to his own dedicated...in internet mode
PostPosted: 04 Feb 2008 14:26 
Offline
Pit Crew
Pit Crew
User avatar

Joined: 05 Sep 2005 18:51
Posts: 2124
Location: TraxicoLand (Fr)
Owned TM-games: ALL
totemx wrote:
nothing... i've done everything but my pc said that there is a IP conflict... and i can't join ladder... anyone?

You are not the first i see having an IP conflit. It's really strange, there is no logical reason.

Are you sure you configured correctly your main ip statically (and verified that your connection still work ok), then add on your computer network interface a secondary ip (the public ip of your router).

If it was done correctly, an IP conflit would mean that your router have also its public ip on its lan interface, which is really really strange.

What is your router, what is your computer OS ?


Top
 Profile  
 
 Post subject: Re: [TUTORIAL]Connecting to his own dedicated...in internet mode
PostPosted: 04 Feb 2008 14:39 
Offline
wheelbarrow operator
wheelbarrow operator

Joined: 04 Feb 2008 01:04
Posts: 18
Owned TM-games: Trackmania United
Image
it seems not to recognize my web ip... but in tcp/ip config it goes right. Iv'e got a Zygel, windows xp sp2 and pc is a dualcore 6750, nvidia 8800gts etc...


Top
 Profile  
 
 Post subject: Re: [TUTORIAL]Connecting to his own dedicated...in internet mode
PostPosted: 21 Jun 2008 23:56 
Offline
Pit Crew
Pit Crew
User avatar

Joined: 02 May 2006 16:13
Posts: 1304
Owned TM-games: tmuf
*push* - gosh why this isnt sticky?

_________________
Image

Link: How to get your own banner of your ranking at Mistral World Selection


Top
 Profile  
 
 Post subject: Re: [TUTORIAL]Connecting to his own dedicated...in internet mode
PostPosted: 22 Jun 2008 11:39 
Offline
sunday driver
sunday driver

Joined: 06 Jun 2008 12:03
Posts: 50
Owned TM-games: TMN-F
Nice guide, but i presume this is for routers without NAT?

All i did for hosting here ( on a gigabit network, nothing different except for the speeds )
PC A= Server
PC B = Gaming rig

Tell the router to forward ports 2350 and 3450 to IP of PC A ( all DHCP static IP's )
Started server and ignored warning.
Told my mates to connect, and it worked.

Then i sat behind my gaming rig and joined through both LAN connection and through the gamebrowser itself..
No need for putting your WAN IP in your nic's.

If you dont have a NAT enabled router then just join through LAN, because the server is broadcasting both WAN and LAN. No problems if you join LAN side and others WAN side.

_________________
DB 100 Pax
Netherlands - Zuid Holland
100 player server. Only custom maps made by Dutch Bulldogs.


Top
 Profile  
 
 Post subject: Re: [TUTORIAL]Connecting to his own dedicated...in internet mode
PostPosted: 22 Jun 2008 17:13 
Offline
Pit Crew
Pit Crew
User avatar

Joined: 02 May 2006 16:13
Posts: 1304
Owned TM-games: tmuf
Did u read the first post? "Whats the problem" - "Using some nat-router modems" ...

If your router supports NAT-Loopback (thats the features name) be happy ;)

_________________
Image

Link: How to get your own banner of your ranking at Mistral World Selection


Top
 Profile  
 
 Post subject: Re: [TUTORIAL]Connecting to his own dedicated...in internet mode
PostPosted: 22 Jun 2008 21:37 
Offline
smooth traffic navigator
smooth traffic navigator

Joined: 08 Jun 2007 20:50
Posts: 203
Location: Dublin, IRELAND
Owned TM-games: TMUF, TMNF
Katana wrote:
No problems if you join LAN side and others WAN side.


You can't score ladder points through LAN.

_________________
Image
Click here to launch TMF and join our server


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 29 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group