The laptop consistently assigns itself 169.254.54.112 and the Pi 169.254.167.89.
I've never bothered checking this as I'd assumed they were just random
I wonder if computers use some algorithim based on MAC addresses of the interfaces?
If there is it's probably in RFC 3927.
RDK wrote:I've tried to search on this topic but was not successful. My question is can I connect my Pi directly to a PC or laptop (Ethernet or USB) and then interact with it using PUTTY or some other program?
I know that if the Pi is on my network with an IP address I can get to it using PUTTY. But, what if I'm travelling (car, train or plane) and want to do something on the Pi, but don't have an available network?
You could create a static IP entry on the SD card and Windows interface or you could just let both devices auto assign 169.254.x.x address.
Then to find a headless Pi's address from a Windows computer, you will need zeroconf installed to resolve raspberrypi.local to that address.
Some popular applications include it or you can install Bonjour.
https://learn.adafruit.com/bonjour-zero ... x/overview
After booting up and letting both devices find each other, you should be able to ssh and ping raspberrypi.local
Additionally, if you happen to be connected to the internet via wifi, you can also bridge your wifi to ethernet connections to share the internet to the attached Pi.
http://www.windowscentral.com/how-set-a ... windows-10