public static byte[] toIPv4AddressBytes(int ipAddress){
  return new byte[]{(byte)(ipAddress >>> 24),(byte)(ipAddress >>> 16),(byte)(ipAddress >>> 8),(byte)ipAddress};
}

public static byte [ ] toIPv4AddressBytes ( int ipAddress ) { return new byte [ ] { ( byte ) ( ipAddress > > > 24 ) , ( byte ) ( ipAddress > > > 16 ) , ( byte ) ( ipAddress > > > 8 ) , ( byte ) ipAddress } ; }
accepts an ipv4 address in the form of an integer and returns the corresponding byte array .
