QUICK QUESTION: Laptop has wifi. I have ethernet cable connecting laptop and raspberry pi to share wifi from laptop to pi. How to check the ethernet ip address of pi on laptop? (ipconfig doesn't work)
DETAILS: I am running windows 10 on laptop. I am following guides to use laptop as monitor for my raspberry pi and I need to establish ssh connection between laptop and pi using ethernet cable and putty.
The problem is that, using an ethernet cable, the eth0 ip address of pi (from ifconfig) changes when it reboots, and it also does not agree with the ip address on my laptop ethernet setting (from ipconfig or checking control panel), which means I cannot use ipconfig to identify the correct ip addresss of pi even if I change the ethernet setting on laptop to 'obtain ip address automatically' (because obviously it doesn't obtain the right one but use another weird-looking ip that it obtains from nowhere). Thus I cannot input the correct ip address into putty to establish ssh without first accessing pi itself and running ifconfig. Oddly, I am able to get ssh working if I input the correct ip address found using ifconfig on pi, regardless of what is found using ipconfig on windows.
My goal is to be able to ssh my laptop with pi and ultimately use laptop as screen for pi, anytime and anywhere using anyone's wifi, as long as there's wifi connectivity available on laptop. To do this, I need to get the right ip address without checking ifconfig (since checking ifconfig requires a screen in the first place but screen is what I want after all)
In conclusion, how do I check the ip-address of pi using laptop with ethernet connected, OR, not desired but if possible, how to make raspberry pi to always use the ip address I can find on laptop windows ipconfig (or at least a fixed ip address) for ethernet connection?
EDIT: I had terrible understanding about ip address. Now I vaguely know that raspberry pi is assigned an ip address within a range defined by ethernet setting on laptop. The exact ip address and hostname can be found using ip scanner application. Now the question becomes, how do I relibaly make raspberry pi to use a fixed ip address for ethernet under any wifi, by either changing some settings on pi or laptop windows? Or even better, establish a one to one network without wifi?