You are printing decimal codes for 127 0 0 1.
That normally isn't sent as a message! So either something is wrong with the sender, or those particular bytes are suppose to have the IP address within the message! For an ASCII type message it normally isn't sent!
I guess I didn't cull enough. It allows you to print formatted headers like printf!
void Mem( const void * const vp, uint nSize, const char *szText, ... )
Something like one of the following!
Mem( buffer, nPacketSize, "Packet Header #%d", 1 );
Mem( buffer, nPacketSize, "Packet Header" );
I think you'll need #include <stdarg.h> at the top of your Code file.