Use Dynatrace Built‑In SSL Certificate Expiration Checks

Actually.. it only shows 127.0.0.1 if the listening address is 0.0.0.0 (all interfaces). But if your service is listening on a particular IP, it will show the IP and the port.

So basically it looks like this:

This listening port information is provided by OneAgent.