Valhalla Legends Forums Archive | Battle.net Bot Development | Realm Authentication (&H1)

AuthorMessageTime
Elneroth
Hi, I'm having trouble with the Realm Authentication. (0x01)

[code]Server -> Client (0x3E)
(DWORD)  Cookie
(DWORD)  Status
(DWORD[2]) MCP Chunk 1
(DWORD)  IP
(DWORD)  Port
(DWORD[12])  MCP Chunk 2
(STRING)  BNCS unique name
(WORD)   Unknown

The first part of the MCP Chunk that must be sent to the MCP server includes the Status and Cookie DWORDS, making MCP Chunk 1 the first 4 DWORDS of the packet.

[/code]

[code]Client -> Server (0x01)
(DWORD[16])  MCP Startup Data
(STRING) Battle.net Unique Name[/code]

Evertime I send this packet to the realm connection I get disconnected on Battle.net's side. I was wondering if anyone knows what I'm doing wrong.
This was sent after sending the chr(0) protocal byte.

[code]RECEIVED:

FF 3E 57 00

6A 49 78 13 - 34 3B 69 21 - D3 E9 00 48 - EB C9 4E 00  (Cookie / Status / MCP Chunk 1)

D3 E9 10 EF - 17 E0 00 00 (IP / Port)

00 00 00 00 0B A0 3B 06 5B 66 FD 9A 50 58 32 44 36 38 58 49 D3 E9 00 48 00 00 00 00 FD D5 73 C9 DB 5F B9 8C FB 6D E9 65 21 B0 26 EF 76 C3 E8 01  (MCP Chunk 2)

45 6C 6E 65 72 6F 74 68 (Unique ID) 00
6F 74 (Unknown)

SENT:

4D 00 01
6A 49 78 13 - 34 3B 69 21 - D3 E9 00 48 - EB C9 4E 00  (Cookie / Status / MCP Chunk 1)
00 00 00 00 0B A0 3B 06 5B 66 FD 9A 50 58 32 44 36 38 58 49 D3 E9 00 48 00 00 00 00 FD D5 73 C9 DB 5F B9 8C FB 6D E9 65 21 B0 26 EF 76 C3 E8 01 (MCP Chunk 2)
45 6C 6E 65 72 6F 74 68 (Unique ID) 00[/code]












July 2, 2005, 8:39 PM
Elneroth
Problem Solved.

Was accidentally sending the Chr(0) protocal byte to Battle.net and not the realm with 0x01.

I sure did learn a hell lot troubleshooting this though  ::)
July 2, 2005, 9:28 PM
QwertyMonster
Troubleshooting and debugging usually solves everything.. :)
July 2, 2005, 9:31 PM

Search