Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static String getIpAddress(byte[] rawBytes) {
- int i = 4;
- String ipAddress = "";
- for (byte raw : rawBytes)
- {
- ipAddress += (raw & 0xFF);
- if (--i > 0)
- {
- ipAddress += ".";
- }
- }
- return ipAddress;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement