Write portFromBytes()