Is there a command or UI that lists all of the in-use ports by both the TrueNAS server and the installed apps?
Something like netstat -tulpn
?
Yes, but as configured in TrueNAS, not the ports in actual use. As configured, I have port 80 and 443 on 192.168.1.2 configured for the TrueNAS GUI, 80 and 443 on 192.168.1.8 for Nginx Reverse Proxy, 30024 on 192.168.1.2 for Plex, 10023 on 192.168.1.2 for Plex, etc.
A quick googling got me this:
sudo docker container ls --format "table {{.ID}}\t{{.Names}}\t{{.Ports}}" -a
I don’t know of a way that will tell you what is using what all at the same time, but the above shows the situation in docker in a nicely formatted way at least.