One good guide to follow is how to get an open NAT on Xbox with port forwarding, if you don't already have one. RELATED: How to set up a static IP address on Windows 11 PC Additionally ...
such as port forwarding. Disable UPnP. Save your changes, when done. Restart your Xbox One, router, and modem. Again, navigate to the UPnP menu on your router. Enable UPnP and save your changes.