AFBClient: fix port sanity check