Had this same issue despite changing baud rate, messing with firewall settings, and changing wifi/program connection order.
I eventually solved it by initiating a ssh session to the controller through putty while Mission Planner was trying to connect. Frustrating but at least there's a solution.