Change how listening port is defined