Can't login through dataplicity wormhole

You could do it using a VPN which is more secure (effectively what Dataplicity does) or else, yes open ports on your UniFi router - though that is a risky move unless you really know what you are doing.