Ports

Ports

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

User avatar
Charlemagne
Posts: 174
Joined: 18 Apr 2005, 17:59

Ports

Post by Charlemagne »

What ports do Spring use?
SJ
Posts: 618
Joined: 13 Aug 2004, 17:13

Post by SJ »

The lobby room uses 4897 tcp to communicate with the server. Then when you create a battleroom you can choose what ports it should use. 8452 is the default. The battleroom itself will use tcp on this port while the game will use udp on this port.
Slayer
Posts: 22
Joined: 11 Jul 2005, 19:29

Post by Slayer »

A site with explanations on how to forward ports:

http://www.portforward.com/routers.htm

Has instructions for every router
User avatar
Decimator
Posts: 1118
Joined: 24 Jul 2005, 04:15

Post by Decimator »

Remember that your ip address does not need to be set manually in the battle lobby in most cases. That caused Sorn and I a lot of grief.
Last edited by Decimator on 23 Aug 2005, 08:39, edited 1 time in total.
User avatar
mother
Posts: 379
Joined: 04 May 2005, 05:43

Post by mother »

SJ wrote:The lobby room uses 4897 tcp to communicate with the server. Then when you create a battleroom you can choose what ports it should use. 8452 is the default. The battleroom itself will use tcp on this port while the game will use udp on this port.
To clarify: From a normal setup with a router/firewall plugged into your modem and your computer plugged into the router/firewall you will need to:

Allow / Forward Port 8452 either in 'All' protocols or once each for TCP and UDP.

The 8200 connection is a normal plain-jane outbound connection, just like everything else 'not wierd.' You shouldn't need to change anything for that to work.

If you have a double NAT setup (ie VOIP router->router->computer) you need to forward port 8452 tcp&udp twice. The first time (on ie the VOIP box) you target the 'real' (outside interface) of the normal router (The one that isnt 192.168.x.x-ish). You then do the same as if you did not have this problem.

The entering of IP address into the Lobby *program* is for special types of circumstances, which you shouldn't be worrying about until you get it to work 'normally' (if ever).

Code: Select all

                      +--Firewall/Router--+
        Players       |                   |
        Computer      |			          |	 Hosts Computer
                      | 	    (PW)	    |  Battleroom      Game
                      |         Lobby     |(SpringClient) (Spring.exe)
1)Lobby      ----tcp--|--------->*8200*   | 
2)Battleroom ---------|-------------------|---tcp--->8452
3)Game       < -    - |   - - -  -  -  - -| - udp - -   -- - -->8452


When you run spring.exe and enter IP addresses directly, it will only make that last connection(3).

To play a game you are making 2 outbound tcp and one outbound* udp connections. The default for a firewall is to allow you to send out whatever you like, so its all good.

To host a game from the lobby you need to allow those 2 incoming types of connections*(2) and (3).

I hope that was less confusing then helpful.
Edited to reflect new lobby, on port 8200

<---If you weren't outraged by anything I said above don't read below this line. It is irrelevant to you. ------->

*Yes UDP isn't a connection, don't confuse people ;) Modern NAT stuff(tm) will automagically figure out what to do here.
Betalord
Former Engine Dev
Posts: 543
Joined: 29 Jun 2005, 09:31

Post by Betalord »

Code: Select all

                      +--Firewall/Router--+
        Players       |                   |
        Computer      |                   |    Hosts Computer
                      |        (PW)       |  Battleroom      Game
                      |         Lobby     |(SpringClient) (Spring.exe)
1)Lobby      ----tcp--|--------->*8200*   |
2)Battleroom ---------|-------------------|---tcp--->8452
3)Game       < -    - |   - - -  -  -  - -| - udp - -   -- - -->8452 
Actually, the new lobby (TASClient) doesn't need any ports forwarded anymore. The only thing left to forward is 3), 8452 UDP port (it can be any other port actually, but must be the one you specified in the host battle dialog). Battle room hosting is done by server now.
User avatar
altaric
Posts: 185
Joined: 28 Oct 2005, 10:07

Post by altaric »

Hello
I'm using XP, diabled SP2 firewall, i use a software firewall instead
i have a router (zyxel) i forwarded ports to the ip i see using "ipconfig"
and i still can't host a game .. ppl can join battleroom but once i start the game .. i'm alone .. any ideas ?
Kixxe
Posts: 1547
Joined: 14 May 2005, 10:02

Post by Kixxe »

My modem ain't on that list... it's a D-link DSL-300T...

Also, i have Zonealarm firewall with Spring allowed on all sectors in all ways. And i also have AVG, but i don't think it has firewall.


What should i do? (i can't host btw)

(in Normla lanhgue, hopefull >.>)
User avatar
altaric
Posts: 185
Joined: 28 Oct 2005, 10:07

Post by altaric »

I don't know how the game is coded .. but if the server tells clients where to join, the server will say 192.168.1.xxx (local adress) so you need to tell the server what's your interner IP
User avatar
altaric
Posts: 185
Joined: 28 Oct 2005, 10:07

Post by altaric »

ok, it works :) i had the port well forwarded, but my router's firewall was blocking
BadMan
Posts: 146
Joined: 07 Oct 2005, 03:05

Post by BadMan »

I got 3 roommates who like to play spring as well. When one of us hosts a game on the main server, and we all join, everyone loses connection. When we host a LAN game, everything is fine.

Is there a way to fix this? Like open the 8452 port across all computers? Cuz we have this problem in other games too b/c we all pretty much play the same things.
User avatar
altaric
Posts: 185
Joined: 28 Oct 2005, 10:07

Post by altaric »

you can try to manualy connect using the local ip .. (192.168.1.xxx)
i can't tell you much .. i have no idea on what to do :=)
Betalord
Former Engine Dev
Posts: 543
Joined: 29 Jun 2005, 09:31

Post by Betalord »

BadMan, try setting unique UDP source port for each of the clients on LAN (TASClient->options->misc)
jellyman
Posts: 265
Joined: 13 Nov 2005, 07:36

Post by jellyman »

I have zone-alarm, given TASClient access internets and act as server rights. I have set security level to medium. But I cannot host. Any advice on how to get it working with Zone Alarm? Is there a different free firewall program that others are using to successfully host battles in Spring?

Edit: I thought I had XP firewall disabled, but I don't. So I went into the XP firewall and told it to ignore Spring, and I can now host :)
onezoul
Posts: 3
Joined: 13 Nov 2005, 04:38

bug in online gaming

Post by onezoul »

ok i have 2 computer
(Server - Win2003 SP1)
(Client - WinXP home SP2)
(im using windows firewall)

Server and Client
1. Server connect to the HUB, then the HUB --> Connect to DSL Modem
2. Client connect to HUB

Old Taspring 0.65b2
My client can play online with other player using the old taspring 0.65b2
since the new version is not out yet

Now the New taspring 0.66b1 my problem is
1. my server can play online with other online player,

2. then the client can connect to the lobbyroom and then join to the host game and start.

3. but when loading done my client try to connect with countdown and finish and back to the lobbyroom,

4. my client cannot play with other online player, only my server can play with other online player.


I think this is Bug for a New Taspring 0.66b1


-----------------
Lan Server in Network or LAN, there is no problem.

sorry to my bad english. . . i hope u understand what i mean..... :-)
Catalyst
Posts: 1
Joined: 20 Nov 2005, 01:55

Post by Catalyst »

Ok, everything is opened, Port 8452, 8200, UDP and TCP. And it still won't work, what gives?
Betalord
Former Engine Dev
Posts: 543
Joined: 29 Jun 2005, 09:31

Post by Betalord »

ok, 0.18 doesn't need any more ports forwarded, most of your problems should be solved now.
BadMan
Posts: 146
Joined: 07 Oct 2005, 03:05

Post by BadMan »

Nopers. Still doesn't work. We tried changing his UDP to 10000 and setting it up in the router too, but it still doesn't work. We still just lose sync as soon as the game starts.
User avatar
Maelstrom
Posts: 1950
Joined: 23 Jul 2005, 14:52

Post by Maelstrom »

Well thats a different problem totally. If you lose sync, it means you are atleast connected. So you have a different problem. If you havnt already, try doing a full reinstall of Spring, into an empty folder. Fixed my old sync errors.
BadMan
Posts: 146
Joined: 07 Oct 2005, 03:05

Post by BadMan »

Well, we can play lan games fine tho. Also, if we join someone elses game, we can play fine as well. Only when we try to play on each other's hosted games is when we have the problems.
Post Reply

Return to “Help & Bugs”