If you are still experiencing an issue with connecting, here are some tip you can try.
You can always check online services status here Status .
If online services are fully operational and you are still unable to connect, you may want to try the following.
Here are the port numbers you will need:
Xbox: Activision Support
Should you have any questions on how to port forward, please contact your ISP or the router manufacturer.