Does the DHT programme automatically adjust ports?

If one of the ports on our device is restricted by the operator for inbound traffic, can the DHT and jami’s programs recognise this restriction of inbound traffic and change the port in time to maintain a normal jami connection?