This issue has been troubling me for a long time. When encountering a JMX service in the internal network, and the jmxremote.port is mapped to the upstream IP through NAT port forwarding, all tests will fail. I look forward to a solution.
Here, my setup is as follows:
vmware workstation host
ip: 172.16.67.128
os: Ubuntu 20.04
docker container
ip:172.17.0.2
image: docker pull tomcat:7.0.68-jre8
a Docker container installed on VMHost, with Tomcat 7.0.68 running JMX service, IP mapped from 172.17.0.2:9999 to 172.16.67.128:39001.
The 1st screenshot describes the problem I encountered.

The 2nd screenshot shows that testing is successful when directly accessing the internal IP and port.

This issue has been troubling me for a long time. When encountering a JMX service in the internal network, and the jmxremote.port is mapped to the upstream IP through NAT port forwarding, all tests will fail. I look forward to a solution.
Here, my setup is as follows:
vmware workstation host
ip: 172.16.67.128
os: Ubuntu 20.04
docker container
ip:172.17.0.2
image: docker pull tomcat:7.0.68-jre8
a Docker container installed on VMHost, with Tomcat 7.0.68 running JMX service, IP mapped from 172.17.0.2:9999 to 172.16.67.128:39001.
The 1st screenshot describes the problem I encountered.

The 2nd screenshot shows that testing is successful when directly accessing the internal IP and port.
