Support for procotol version 4 and 5, fixed tcp communication