I have connected to a wifi network i have assigned with an ip: subnet: . but my gateway is in how could this possible? And i have observed my friend's ip he also connected to the same wifi network. he got and he also have the same gateway And I could able to ping him also. How come this possibe?

2 Answers 2


The subnet mask is which means 20 bits belong to Network and remaining 12 is for host. The range of IP Address inside the network can be found by running your IP address against Subnet Mask.

Address:         11000000.10101000.0000 0101.01111101
Netmask: = 20    11111111.11111111.1111 0000.00000000
Network:        11000000.10101000.0000 0000.00000000 (Class C)

The broadcast IP, First Host and Last host IP addresses are:

Broadcast:        11000000.10101000.0000 1111.11111111
HostMin:           11000000.10101000.0000 0000.00000001
HostMax:        11000000.10101000.0000 1111.11111110
Hosts per Network : 4094         (Private Internet)

So your IP address, your friend's IP address and the Gateway IP address all belong to the same network. They should communicate without any trouble.


That is because you are on the same network, That network goes from to The network has 4096 addresses, and 4094 of them can be used for hosts.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.