I am not sure if you have a TZ170 with Standard OS or Enhanced OS. Assuming its standard OS.
To access via WAN (external) you need to login to Sonicwall Management Interface from LAN, in FIREWALL, access rules. add a new rule for: allow, service = https management, source - WAN, destination =...