Change port, fix crash bug on joining