public static void main(String args[]) {
		InetAddress inetAddress;
		try {
			inetAddress=InetAddress.getLocalHost();
			String localname=inetAddress.getHostName();
			String localIp=inetAddress.getHostAddress();
			System.out.println(""+localname);
			System.out.println("IPַ"+localIp);
		}catch (UnknownHostException e){
			e.printStackTrace();
		}
	}