Unknow packet header.

Hi, i have an problem with my codes.
We have a program that communicates:
client -> server
server -> client

I have packet.h server - http://pastebin.com/Px44jyG8
And packet.h client - http://pastebin.com/gcTZkF7L

Ok , wheen i try ro login in client i recive: unknow packet header: 167
My question is , that header 167 dont exist in client and in server.
Soo why this error?


It's possible to be an problem in typedef struct of packets?
Last edited on
You haven't posted any code, just a bunch of definitions, so who knows what's going on.

The one thing you can do is ensure the right messages are being sent on the wire. You have the record definitions, so you must know what the serialised layout will look like.

Use a network sniffer to record the communication between the server and client.

Confirm the correct message is being sent from the client to the server. If it isn't, debug the client code to find out why.

Confirm the correct reply message is being sent from the server to the client. If it isn't debug the server code to find out why.

If all is well so far, debug the client code that handles the reply.
Last edited on
Thank for you help.
Installed wireshark.
And i found some errors.

hERE IS PRINT, and what next ?
http://prntscr.com/8hjemf
http://prntscr.com/8hjeti

How i can find the header with this errors.
Those traces are mostly useless as they stand.

You need to isolate the traffic you are interested in. So to begin with, you need to know the network interface on the computer running Wireshark, the IP addresses to the server and client.

So make sure you're tracing the correct network interface.

Then set up a filter. Let's say the server is 108.160.162.104 and the client is 192.0.78.22. A Wireshark filter that isolates this traffic is:
 
(ip.addr==108.160.162.104) || (ip.addr==192.0.78.22)


You can then further filter by the relevant ports if known.

You'll need to learn a little on Wireshark filters and you'll eventually come up with a filter that isolates the traffic you're interested in. Only then can you start getting useful information from all that noise.
Thanks kbw ,

I maked an filter bettwen ports . HERE is my capture http://www.girlshare.ro/35117272.3
I'm not gonna visit that site with Javascript enabled. What was wrong with prntscr.com?
Last edited on
Topic archived. No new replies allowed.