I was wrong, first packet is trasmitted to default game port instead of http port, but anyway second packet was not transmitted under my 2k3 machine.
Here are raw dumps [tcpdump -x]:
>My server:
04:39:12.275286 IP <myip>.2347 > usgn.de.36963: UDP, length 4
0x0000: 4500 0020 43a5 0000 7f11 7310 5969 8842
0x0010: 55d6 4d96 092b 9063 000c 7c2e 0100 6401
04:39:12.457410 IP usgn.de.36963 > <myip>.2347: UDP, length 30
0x0000: 4500 003a 0000 4000 3a11 bb9b 55d6 4d96
0x0010: 5969 8842 9063 092b 0026 d496 0100 6409
0x0020: 6220 302e 312e 302e 3910 3230 3038 2d30
0x0030: 382d 3039 2032 303a 3235
>Working server:
22:20:59.442200 IP <ip>.2347 > usgn.de.36963: UDP, length 4
0x0000: 7c52 2000 0100 0100 0100 0000 0800 4500
0x0010: 0020 7633 0000 8011 3e04 5969 89c0 55d6
0x0020: 4d96 092b 9063 000c 7ab0 0100 6401
22:20:59.678955 IP usgn.de.36963 > <ip>.2347: UDP, length 30
0x0000: 0100 0100 0000 7c52 2000 0100 0800 4500
0x0010: 003a 0000 4000 3811 bc1d 55d6 4d96 5969
0x0020: 89c0 9063 092b 0026 d318 0100 6409 6220
0x0030: 302e 312e 302e 3910 3230 3038 2d30 382d
0x0040: 3039 2032 303a 3235
22:20:59.960854 IP <ip>.36963 > usgn.de.36963: UDP, length 4
0x0000: 7c52 2000 0100 0100 0100 0000 0800 4500
0x0010: 0020 7634 0000 8011 3e03 5969 89c0 55d6
0x0020: 4d96 9063 9063 000c 3c78 0100 1b01
22:21:00.180555 IP usgn.de.36963 > <ip>.36963: UDP, length 4
0x0000: 0100 0100 0000 7c52 2000 0100 0800 4500
0x0010: 0020 0000 4000 3811 bc37 55d6 4d96 5969
0x0020: 89c0 9063 9063 000c 3c77 0100 1b02 DC Admin Offline
debug/debuglog is already on (1) by default (see autoexec.cfg). it would also work if you would put these commands in the server.cfg. but this would be the same.
my only explanation to this is that something somehow blocks the connection with the USGN masterserver (usgn.de). please note that udp is used for the server<->masterserver communication since cs2d 0.1.0.5 and later.
do the logfiles say something? they should be located in subfolder "sys\logs" of your cs2d path. Lee Moderator Offline
Can you dump per-byte instead of short? The majority of cs2d packets are single bytes Quote
my only explanation to this is that something somehow blocks the connection with the USGN masterserver (usgn.de). please note that udp is used for the server<->masterserver communication since cs2d 0.1.0.5 and later.
There is nothing to block packets from your dedicated server. A server does not try to send second packet as network dump shows so i think there is something wrong inside dedicated server. Can you make temporary debug dedicated server binary which will produce more verbose [maybe step by step] output of registration in the list of servers?
Quote
do the logfiles say something?
Here is whole the log [it does not look like debug]:
1
2
3
4
5
04:39:44: UDP socket initialized using port 2347
U.S.G.N.: Your game version is up to date!
UDP socket initialized using port 36963
load map 'de_dust'
----- Server started -----
Quote
Can you dump per-byte instead of short? The majority of cs2d packets are single bytes
I think there was perbyte dump in hex representation but anyway there is hex and ascii representation of dumps which i posted before.
Dump of my server (only data without headers):
1
2
3
4
5
6
7
8
04:39:12.275286 IP <myip>.2347 > usgn.de.36963: UDP, length 4
0x0000: 4500 0020 43a5 0000 7f11 7310 5969 8842 E...C.....s.Yi.B
0x0010: 55d6 4d96 092b 9063 000c 7c2e 0100 6401 U.M..+.c..|...d.
04:39:12.457410 IP usgn.de.36963 > <myip>.2347: UDP, length 30
0x0000: 4500 003a 0000 4000 3a11 bb9b 55d6 4d96 E..:..@.:...U.M.
0x0010: 5969 8842 9063 092b 0026 d496 0100 6409 Yi.B.c.+.&....d.
0x0020: 6220 302e 312e 302e 3910 3230 3038 2d30 b.0.1.0.9.2008-0
0x0030: 382d 3039 2032 303a 3235 8-09.20:25
Dump of working server (data with some part of header in the beginning of packet, it seems like data start from E in each packet):
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
22:20:59.442200 IP <ip>.2347 > usgn.de.36963: UDP, length 4
0x0000: 7c52 2000 0100 0100 0100 0000 0800 4500 |R............E.
0x0010: 0020 7633 0000 8011 3e04 5969 89c0 55d6 ..v3....>.Yi..U.
0x0020: 4d96 092b 9063 000c 7ab0 0100 6401 M..+.c..z...d.
22:20:59.678955 IP usgn.de.36963 > <ip>.2347: UDP, length 30
0x0000: 0100 0100 0000 7c52 2000 0100 0800 4500 ......|R......E.
0x0010: 003a 0000 4000 3811 bc1d 55d6 4d96 5969 .:..@.8...U.M.Yi
0x0020: 89c0 9063 092b 0026 d318 0100 6409 6220 ...c.+.&....d.b.
0x0030: 302e 312e 302e 3910 3230 3038 2d30 382d 0.1.0.9.2008-08-
0x0040: 3039 2032 303a 3235 09.20:25
22:20:59.960854 IP <ip>.36963 > usgn.de.36963: UDP, length 4
0x0000: 7c52 2000 0100 0100 0100 0000 0800 4500 |R............E.
0x0010: 0020 7634 0000 8011 3e03 5969 89c0 55d6 ..v4....>.Yi..U.
0x0020: 4d96 9063 9063 000c 3c78 0100 1b01 M..c.c..<x....
22:21:00.180555 IP usgn.de.36963 > <ip>.36963: UDP, length 4
0x0000: 0100 0100 0000 7c52 2000 0100 0800 4500 ......|R......E.
0x0010: 0020 0000 4000 3811 bc37 55d6 4d96 5969 ....@.8..7U.M.Yi
0x0020: 89c0 9063 9063 000c 3c77 0100 1b02 ...c.c..<w....
All greetings!
I have a question: What minimum system requirements of a server necessary for CS2D a server?
Sorry for my bad english Aj COMMUNITY BANNED Offline
Dont need much. just go with your standard setup and you should be fine. Lee Moderator Offline
Wmn has written
Quote
Can you dump per-byte instead of short? The majority of cs2d packets are single bytes
I think there was perbyte dump in hex representation but anyway there is hex and ascii representation of dumps which i posted before.
Dump of my server (only data without headers):
Sorry for the late reply. I'm sorry but you're still giving me base-4 data types, is there any way to return 1 hex at a time? Quote
Sorry for the late reply. I'm sorry but you're still giving me base-4 data types, is there any way to return 1 hex at a time?
What you mean base-4 data type?
I've pasted you raw hex and ascii dumps, for example one row:
1
0x0000: 4500 0020 43a5 0000 7f11 7310 5969 8842 E...C.....s.Yi.B
Each full row contains 16 bytes py pairs.
These pairs of bytes are in hex:
4500 0020 43a5 0000 7f11 7310 5969 8842
byte1=45, byte2=00 etc,
and than ascii of that bytes:
ascii=E...C.....s.Yi.B
byte1=E, byte2=null etc,
what else bytes you need? :]
Look further, you can see readable data like last version of server available etc. Lee Moderator Offline
Okay, this is extremely weird. The packets are forged correctly. I've even sniffed it out myself. In the first packet you sent out 01 00 64 01 and received a 30 bytes long piece of data, with the exact same response code I got :
USGN Responses:
01 00 64 09 62 20 30 2e 31 2e 30 2e 39 10 32 30 30 38 2d 30 38 2d 30 39 20 32 30 3a 32 35
01 00 64 09 62 20 30 2e 31 2e 30 2e 39
10 32 30 30 38 2d 30 38 2d 30 39 20 32 30 3a 32 35
however its the packetid 27 packet that interests me. You're saying that the USGN Server doesn't register you as a server yet it gives out the corresponding return code. You sent 01 00 1b 01, and got a return code 01 00 1b 02. Which is where I'm most interested in since the return "status" on my sniffer was an 01 instead of an 02. My packets:
01 00 1b 01
response:
01 00 1b 01
Therefore from here we can assume that:
1. The USGN Server is not at fault here, you clearly successfully established a connection with the USGN.de host at port 36963.
2. The server seems to be doing the right things since it is sending the correct initiation bytes (100 and 27)
I would conclude that the 01 00 1b 02 code meant a failure to register in the USGN serverlist, for whatever the cause however, I can't really determine. Can you use wincap to do another dump on the working server and see if there's anything wrong? (Focus on the 100, 27, and 28 sequences) Are you sure you're server is up to date? Etc Etc, anything can help. Admin/mod comment
errm... okay... thanks. but this is spam and doesn't belong here. please don't do this again. /DC i dowloaded dedicated server it works but its only on LAN You need to edit your router settings to set up a DMZ server or forward port 36963. UDP Port of course. if you forward TCP nothing works Where i should edit it??? control panel > Windowns Firewall>excptions ??
and how i change that chmod cs2d_dedicated (777). ??? plzz i neeed help ! edited 1×, last 26.12.08 12:08:31 am
DC Admin Offline
you don't need to chmod your server if you're running it on your local pc.
however dedicated software has been created to be run on a real server and not on your local pc.
read the windows help / your firewall manual / your router manual / google for port setup stuff. depends on your software and hardware so we can't explain it here. very few ppl is useing a dedicated sv ?? if i go to play and ask how u made taht sv? they answer " New Game" , And i tell all the time " ok if i make it goes to lan :S"
So I got windows , not linux and i dont know how to open prots i need help ! DC Admin Offline
www.cs2d.com/faq.php - first question.
google
manuals
don't host a server if you are too lazy to find out how to open your ports... sv_lan 0 only means, that your server does not ONLY show on lan. so it shows on Lan after you made sv_lan 0 also.
At your home, you can only see yours erver in the LAN window, all the others can see it in internet (if you forwarded the port correctly).
So you see it on LAN, if its in the same network than you are.
You CANT see it in "Internet" DC Admin Offline
uh? You can also see it on the internet serverlist if you open a second instance of cs2d. At least this works for me. Maybe this depends on your router settings etc.