boundport may equals 0, if listenPort is NOT 0.