Make sure no other copy of X-Plane is running by restarting your computer. Then try going to the network setting screen and using the "reset networking configuration" button.
Otherwise, remove all add ons and move, rename, or delete the preferences folder to reset your preferences.