Question about multiplayer xbox series x

do you need to enable port forwarding to play online multiplayer on xbox and do you need to do it on ps5 if you and you friends ps5s and connected to the same network?

Lots of people have issues playing multiplayer without having port forwarding enabled. So, better enable it.

thank you