Assigning to port 80/443 for per-App IP addressing

With the release of the new Per-App IP addressing is it possible to assign apps to port 80/443? I’ve tried to this however, apps return an error saying the respective ports are “in use”.

Thanks for any help :slight_smile:

As far as I can determine, the port conflict is with ports 80/443 within the TrueNAS GUI. Try the following:

  1. Go to the TrueNAS GUI → System → General Settings → GUI → Settings.
  2. Change the http port to 81 and the https port to 8443. (Actually, any port other than 80 and 443 that isn’t in use, but note it down).
  3. You will need to restart the GUI per the on-screen prompt.
  4. Go to your App and then change the port to 80 and 443 respectively.
  5. After verifying functionality, go back to TrueNAS GUI → System → General Settings → GUI → Settings and reset the port back to 80/443 respectively.

Source: per-App IP addressing - how does it work? - #21 by MarkHoltz

Thanks for the help but this seems to only work for one application and not all applications?

At least when I set the first application to port 443 that worked fine however, the second application assigned to a different IP but also on port 443 returned the same error. Unsure if I’ve done something wrong, if this is intended or a bug?

Edit: From what I gather it appears that Truenas keeps a list of used ports to prevent doubling up services on the same port. However, it doesn’t take into account the recent changes to the IP so it doesn’t consider the same port number across unique IP address.

Thanks for the help :slight_smile: