Allow to have a different internal port and public port

Hi,

This commit allow to have a different internal port and public port

Cheers,