Może coś w tym stylu?
public static void main(String[] args) throws UnknownHostException {
byte[] address = InetAddress.getLocalHost().getAddress();
String binaryAdress = new BigInteger(1, address).toString(2);
System.out.println(binaryAdress);
}
Taka propozycja tylko, nie traktuj tego jako wyrocznie.