UniFi OS Consoles Wi-Fi Switching Camera Security Phone System Door Access Accessories UISP

UniFi Video is an obsolete product line.

This application and its related devices will no longer receive any manner of technical support, including functional and security updates. Additionally, there will be no further updates to Help Center content pertaining to UniFi Video.

UISP - Connecting Devices in Private IP Range


In this article, we will explain what is required for NAT when a device inside your network has issues connecting to UISP when an FQDN is being used.

Table of Contents

  1. Introduction
  2. Network Diagram
  3. Setting the NAT
  4. Related Articles


Sometimes you may feel forced to rewrite the FQDN in your generic UISP key with an IP address, in order to connect a device inside your network to UISP. In this situation, it is often useful to check if there is a correct source NAT set on your gateway. In this article, we will explain what is going on and how to fix the situation. 

Network Diagram


Setting the NAT

In the schema above, the domain myuisp.com is set up on and there is a redirect on the gateway from to If the address myuisp.com is opened from the airMAX device it will not work.

The reason for that is that the airMAX device asked DNS to translate myuisp.com and it received the public address When the first packet is sent there the gateway router (EdgeRouter 4 in this example) intercepts the packet and rewrites the destination IP to (UISP console). The UISP console (server) gets the packet and it replies with an ACK packet (acknowledges the connection) which travels to a sender address - (airMAX device). But the airMAX device sent a request to the server and that server never answered, so that connection eventually times out. Instead, the airMAX device receives an ACK packet from, which the airMAX device never tried to contact so that packet is discarded. 

The solution to this issue is to add a rule to the gateway which will NAT all packets going to Here is a guide on how to set up Hairpin NAT on the EdgeRouter.

Related Articles

EdgeRouter - Add source NAT rules

Was this article helpful?
15 out of 36 found this helpful