Java - how to get IP address automaticallly in JNLP file?

前端 未结 4 2043
自闭症患者
自闭症患者 2021-01-16 08:08

In the JNLP file how do I get the IP address automatically? Example:

 


        
4条回答
  •  悲哀的现实
    2021-01-16 08:14

    It can't do that.

    You can add a DNS entry for 10.10.10.1, and put the hostname in that field instead of the IP address, but it's just XML - there's no way to call a method from that line to run code and figure out what IP address it should connect to.

提交回复
热议问题