I am using https://github.com/DiUS/pact-jvm/tree/master/pact-jvm-consumer-junit, which uses MockServer, which uses Netty.
The launched Netty listens on loopback only (netstat -tulpn output:)
tcp 0 0 127.0.0.1:21221 0.0.0.0:* LISTEN 27681/java
, but I want it to listen to "the outside world". I want the launched Netty to accept connections on my LAN-IP address (192.168.x.y:21221 as local address, for example), or even every incoming connection to the Netty-port (0.0.0.0:21221 as local address). As my framework chain somehow makes Netty-configuration, well, far away, I would like to do that when starting my application, using a System property. Something like
System.setProperty("io.netty.listenAddress", "0.0.0.0");
Is this somehow possible?