# Calculating hosts ip

Registered Users Posts: 3 ■□□□□□□□□□
Hello

For some reason, I have to calculate a hostadress.

I have for example
```4.0.0.0, and it is /eleven. I want to know the 1593th host of the eleventh subnet
```

Can someone try to explain how i can calculate this.. I tried to read stuff about it, but can't find out how to calculate a host. Only how to calculate subnet,...
```/16 means sixteen bits for subnet
11111111.11111111.00000000.00000000
--> Subnet 255.255.0.0

2^16 = 65536 hosts available..
```

But i don't know how to calculate 1593 of the eleventh subnet.. I'm not experienced with this kind of ip-calculating. Can someone try to explain this?

• Member Posts: 1,945 ■■■■□□□□□□
hint: convert 1593 to binary.
Andy

2020 Goals: 0 of 2 courses complete, 0 of 2 exams complete
• Registered Users Posts: 3 ■□□□□□□□□□
Like this?
```11000111001 --> 8 bits --> 00000110.00111001 --> 6.57--> 4.11.6.57?
```
• Banned Posts: 1,343
In what real world scenario would this be a valid concern? Just curious.
• Registered Users Posts: 3 ■□□□□□□□□□
Not a real world scenario, just calculating stuff.. Don't know why i should need it in RL.