port forward tester

port forward tester

Various things about Spring that do not fit in any of the other forums listed below, including forum rules.

Moderator: Moderators

Post Reply
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

port forward tester

Post by aegis »

i whipped up a port forward testing program in python.

windows users can just download the exe if they don't want to install python
http://public.zjt3.com/porttest/

many linux distros come with python stock, so you can possibly just download and run

Code: Select all

python porttest.py
in a terminal.
User avatar
koshi
Lobby Developer
Posts: 1059
Joined: 14 Aug 2007, 16:15

Re: port forward tester

Post by koshi »

i'm getting:

Code: Select all

kosh@koshfest:~/Desktop$ python porttest.pyc 
Traceback (most recent call last):
  File "C:\Documents and Settings\Administrator\Desktop\bots svn\stream editor\porttest.py", line 3, in <module>
  File "/usr/lib/python2.5/UserDict.py", line 22, in __getitem__
    raise KeyError(key)
KeyError: 'OS'
this is on ubuntu 7.04 with python 2.5.1
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: port forward tester

Post by aegis »

should be fixed, didn't test it fully ;)
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: port forward tester

Post by AF »

Is this just pinging a service on one of your hosts at the necessary port?
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: port forward tester

Post by aegis »

runs a socket server and tells my server to connect to it, then reports you can host if it got a connection from anything
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: port forward tester

Post by AF »

You wouldn't mind if I did something similar in AFLobby? Can you pm me the address and stuff?
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: port forward tester

Post by lurker »

http://zjt3.com/porttest.php?port=8452 right? Why is that pm-worthy?
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: port forward tester

Post by aegis »

springlobby is implementing it as i'm posting this
i don't mind if you use it too

ideally, it will be added to uberserver
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: port forward tester

Post by imbaczek »

something even better:

http://en.wikipedia.org/wiki/Stun
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Re: port forward tester

Post by Licho »

You didnt provide sources, but judging from "compiled" pyc, its opening TCP socket..
You are testing TCP and not UDP ..
Spring is using UDP.

You need a service on client side which accepts UDP packet and informs server that the port is open..
User avatar
Complicated
Posts: 369
Joined: 06 Jun 2007, 18:51

Re: port forward tester

Post by Complicated »

Better idea for port testing, open the nessessary ports, invite one person to a port test (takes a minute to get someone unless your critically retarded and everyone hates you)

Then play, and see if he connects. Saves time ;'] and if the port works, your already ingame :|
User avatar
SinbadEV
Posts: 6475
Joined: 02 May 2005, 03:56

Re: port forward tester

Post by SinbadEV »

Sorry to rez... but if someone who knows what to do would submit spring to http://www.portforward.com/requests.cgi we could link people to their site and then the users would have a nice pretty screenshot filled manual.
Post Reply

Return to “General Discussion”