All pastes #585316 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-06-23 05:31 UTC
rendered paste body
	//lets hope this works, setting the quite some strings :)
	java.net.InetAddress i = java.net.InetAddress.getLocalHost();
	System.out.println(i);                  // name and IP address
	System.out.println(i.getHostName());    // name
	System.out.println(i.getHostAddress()); // IP address only	
	String HostName = i.getHostName();
	String HostAddress = i.getHostAddress();

		if(message.equalsIgnoreCase("!ip")) {
		sendMessage(channel, username + "@" + HostName + "/" + HostAddress);
		}