java rmi -Djava.rmi.server.hostname=localhost still opens a socket listening on 0.0.0.0

后端 未结 3 2023
伪装坚强ぢ
伪装坚强ぢ 2020-12-30 09:56

I use the -Djava.rmi.server.hostname=localhost option to make rmi listen on localhost only, but netstat shows the socket is listening on 0.0.0.0.

3条回答
  •  难免孤独
    2020-12-30 10:08

    Since Java 8u102 -Dcom.sun.management.jmxremote.host binds to the special ip address.

提交回复
热议问题