'How to check adb access over ethernet?

I want to connect my Android device via ethernet to access adb. The device is not connected to any internet/wifi. The ethernet cable should connect the laptop with the Android device. Using Android 11.

Is it possible? Can someone please help me?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source