I live in a hostel room where I am given a wall ethernet socket and a subnet(unique IP addresses to choose from). If I connect my laptop through ethernet, I use an IP 172.31.74.129
.
But I needed to connect my mobile devices as well. So I bought up a router.
Now the problem is that I am getting an ip address 192.168.0.101
. Now my friend sitting in the next room with ip address 172.31.74.137
can not ping my laptop or use a TCP server that I have hosted on my machine.
Is there a way by which I can get an IP(or manually enter ip) in the same subnet (172.31.74.*
) instead of getting an IP of 192.168.0.*
? (Something like what a switch would do). If not, is there any alternative thing I can do to resolve the issue?