In the JNLP file how do I get the IP address automatically? Example:
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+" codebase="GET ip address here automatically" href="Test.jnlp">
instead of manually setting the address to: codebase="http://10.10.10.1/"
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.