Question Local static ip while connected to a mobile hotspot

Jan 10, 2019
5
0
10
0
Hi, i need help to set up a local static ip on my pc (windows 10) that I use with my android phone's (oneplus 7) hotspot. When I set up my local ip for the first time it worked perfectly. I used the default gateway and dns server that i got from ipconfig. The problem is that every time I reconnect my hotspot, only google websites open, until I change the Dns and gateway in the network settings again. Is there any workaround to this?

Note: i have a TP-Link WN-881ND Wifi Card
 
Jan 10, 2019
5
0
10
0
So you don't use DHCP from the hotspot? Do you have a port forward setup or something that you NEED a static local IP? If you can port forward, you can probably setup a MAC based IP reservation on the hotspot also.
I made an app to send bytes to my pc through TCP sockets, and I need the server (PC) to have a static IP. I'll try to setup a MAC based reservation.
 

kanewolf

Titan
Moderator
I made an app to send bytes to my pc through TCP sockets, and I need the server (PC) to have a static IP. I'll try to setup a MAC based reservation.
So you have an app on your phone, which is also the hotspot. Have the app do an arp call based on the MAC address to get the IP address. If you do this then you can use DHCP from the hotspot.

Here is a thread talking about getting an IP address from the ARP cache -- https://stackoverflow.com/questions/42660034/access-arp-table-without-root-in-android
 
Jan 10, 2019
5
0
10
0

ASK THE COMMUNITY

TRENDING THREADS