That's fixed the problem. The packet object on the server only held a reference I think.
Tried using an enum, something was causing an exception on the reader, so gave up with enum and went to constants. Would like to sort this out but don't want to waste time on it now.