I have a raspberry pi connected via wifi to my home broadband connection and also via a 4G dongle to a sim card.
If I run ifconfig I can see that I have eth1 (the USB dongle) and an associated IP address and wlan0 and an associated IP address.
If I'm connected to both networks and run:
Code: Select all
wget -q0- http://checkip.dyndns.com --bind-address [wlan0 ip]
However, if I run
Code: Select all
wget -q0- http://checkip.dyndns.com --bind-address [eth1 ip]
If I disconnect from wifi so that I'm only connected via the USB dongle and re-run:
Code: Select all
wget -q0- http://checkip.dyndns.com --bind-address [eth1 ip]
It appears as if when both network interfaces are connected I cannot use the USB dongle's internet connection.
I was hoping someone could shed some light as to what's going on and how I can resolve this so I can make requests on both network interfaces? Please let me know if any more information is required - somewhat out of my depth with this!
Thanks.