in my unserstanding it's not a question of using InetAddress or not. correct me if i'm wrong, but i would say that there is no way to find out the ip address of the server (well, you can try out all ;-) )
so you have to have an option to enter an id-adress. (property files are forbidden for basic configuration.)
i implemented a little gui to enter the ip adress. i'm then constructing an InetAddress object out of it, first reason is for input verification, second reason is for type-safe communication between user-gui and data connector.
works pretty good so far ;-)
Joined: Aug 25, 2005
Maybe i had a wrong expression . I meant that if allow the server to config the IP in suncertify.property by InetAddress . Or when start the server , allow to enter the server's IP through the server' gui.
Joined: Feb 03, 2004
oh, i see....
well, it's a three-liner to find out the current ip, and it's way more comfortable for the user.
i'm reading out the ip & display it in the server gui, which has start & stop buttons & a filechooser.