In ZMQ layer: added network auto-configuration and fixed bug in PackByte.