I'd like to assign a static IP address to my laptop when it connects to the mobile hotspot created by my Android 14 Xiaomi phone. This would allow me to access SFTP servers running on my laptop from my phone more easily. Additionally, it would be beneficial to have a static IP or a '.local' address for the phone itself, though setting a static IP for the laptop is my primary concern.
My laptop already has a .local
address, but the address doesn't resolve in Android. (I thought this problem was solved in recent Android versions, but it still doesn't work.)
I can root the phone if needed.