I can’t connect to anyone or others can’t connect to me. What could be the problem?

Make sure that WiFi is turned on, even though you don’t need to be connected to a WiFi network.
Make sure everyone is using the same private code or all have it turned off.