I want that my program prints a statement whenever there is a physical disconnection of the LAN connection from my Ethernet port.
One way is to check if there is a discontinuity in the internet connection,but i don't want the print statement to be triggered when there is a network issue from the server.Only when the wire is physically not connected to my PC.
Is there any way to implement this in Python?