Advertisement
Guest User

Untitled

a guest
Oct 1st, 2014
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.32 KB | None | 0 0
  1.      public static String getIpAddress(byte[] rawBytes) {
  2.         int i = 4;
  3.         String ipAddress = "";
  4.         for (byte raw : rawBytes)
  5.         {
  6.             ipAddress += (raw & 0xFF);
  7.             if (--i > 0)
  8.             {
  9.                 ipAddress += ".";
  10.             }
  11.         }
  12.  
  13.         return ipAddress;
  14.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement