diff --git a/server/exampleReceiver.py b/server/exampleReceiver.py index 20f7144..7f0c279 100644 --- a/server/exampleReceiver.py +++ b/server/exampleReceiver.py @@ -6,7 +6,7 @@ import os def get_eth0_ip(): try: # Get the IP address of the eth0 interface - eth0_ip = str(os.system("ip -4 -o addr show wlan0 | awk '{print $4}' | cut -d '/' -f 1 ")) + eth0_ip = str(os.system("ip -4 -o addr show eth0 | awk '{print $4}' | cut -d '/' -f 1 ")) return eth0_ip except (KeyError, IndexError, OSError) as e: print(f"Error getting eth0 IP: {e}")