How to create a Local Area Network with Android device?
Connect it to WiFi or ethernet via cable.
At router or DHCP server settings reserve IP address for Android.


Now you has network and known IP address for your Android device.

P.S. if you don't have router and directly connected to internet via cable - you can emulate WiFi router on your PC (not all adapters supported).