End-to-end encrypted UDP is always used for P2P connections and end-to-end encrypted TCP (when needed also encapsulated in TLS 1.2) is used for Connect Anywhere relay connections.
For P2P connections you have several choices:
1. It might work out of the box without any router configuration. In this case you can skip the next steps.
2. If point 1 does not work and connection can only be established using Connect Anywhere please check Remotly Settings->Network
The network section has all the settings needed for P2P configuration:
- Network interface allows you to select the network interface that will be used for connections (you might for example have WiFi and Ethernet available at the same time)
- Preferred relay server location (this option is not for P2P but only for Connect Anywhere and lets you override automatic server selection)
- Use custom P2P port numbers allows to force a group of ports that will be used for inbound and outbound P2P connections
As you can see the range of ports is quite large as some networks may have many remote hosts.
After enabling specific ports in Settings->Network you can port forward them in you routers settings.
- P2P with Error Resilience is no longer used and will be removed from future versions (all P2P connections in the latest Remotly version have advanced error resilience enabled)
- Use UPnP port forwarding whenever possible. Enabling this option in Remotly settings and UPnP on your router allows automatic port forwarding on the fly (without manual port forwarding configuration). Please remember that this might work differently on specific routers.
This option uses ports depending on "Use custom P2P port numbers". If "Use custom P2P port numbers" is enabled it will use ports from this group. If "Use custom P2P port numbers" is disabled random ports assigned by the operating system will be used.
You will see a special server icon after connection (client window) when Connect Anywhere is used (P2P did not work):
When this icon is not visible it means connection is P2P: