How two computers connect directly through NAT
Follow a click from a market stall to a studio computer. See how Remoqa tests a direct route through two routers and when a relay carries the session.

The short version
Two desktop apps can establish a direct connection even when both computers sit behind routers. Each sends traffic out, then checks whether a reply gets through. You can leave port forwarding off.
A customer wants a closer look at the kingfisher’s wing. The full-size drawing is on the computer in your print studio. At the stall, you connect your laptop to your phone’s hotspot, open Remoqa and enter the studio computer’s ID and your access password. When you click to zoom in, which way does that click travel?
What changes when you leave the studio?
At the next desk, the laptop and studio computer can usually reach each other over the local network. Remoqa prefers a direct TCP connection there. At the market, the studio computer’s private address is only meaningful back in the studio.
Network address translation (NAT) lets several devices share an external IP address. When the studio computer sends a packet out, its router records which internal address and port to send replies to. The mobile operator may translate the laptop’s traffic again. For a direct session, both networks must let the other computer’s packets reach the right device.
Which address can the other computer try?
Each desktop app sends a small UDP request to a STUN server. The server replies with the IP address and port it saw on the request. That gives each app an address to offer its peer, even if the mobile operator assigned the outermost port.
The apps exchange those addresses and temporary certificates in encrypted messages through Remoqa’s signalling service. Each keeps using the same UDP socket. The address is a candidate until the two computers have actually exchanged packets.
From a test packet to the first click
The studio computer sends short probes towards the laptop while the laptop starts a QUIC connection back to the studio over UDP. With compatible NAT rules, sending traffic out on both sides lets the return packets through. This is called UDP hole punching.
The apps check each other’s certificates and confirm the connection. Your zoom command now goes straight to the studio computer, which redraws the wing and sends the picture back. Screen updates, input and file transfers use separate streams on that QUIC connection.
What if the return packet never arrives?
A router may assign one external port for traffic to the STUN server and a different one for traffic to the other computer. The advertised port then leads nowhere for that peer. A network that blocks UDP can also rule out this direct route.
While testing the direct paths, both apps also prepare outgoing TCP connections to a Remoqa relay, protected by TLS. If direct checks do not succeed and both computers can reach the relay, it forwards the click and the image. The session stays encrypted end to end. You can still show your customer the detail on the wing.