Fixed #1047: Use port '0' for networking when using one locality