off by 1 byte bug fixed in extOrPort