* the correct address once returned
* @param port
* @return
*/
public ConnectionType createConnection(final int port) {
final ConnectionType connection = factory.createConnectionType();
String host;
try {
host = InetAddress.getLocalHost().getHostAddress();
} catch (UnknownHostException ex) {
logger.warning(ex.getLocalizedMessage());
host = "";
}
connection.setHostAddress(host);
connection.setPort(BigInteger.valueOf(port));
return connection;
}