Fixed: retrieve client's port
clear unregistered indices if are set in bitfield