Use different interfaces (eth0 and wlan0) for sending and receiving in Python program [duplicate]

StackOverflow https://stackoverflow.com/questions/22636894

  •  20-06-2023
  •  | 
  •  

Domanda

Is it possible to switch between interfaces in Python program?

I will have eth0 and wlan0 connection, both are different routers. I'm using boto to upload images to AWS server. And I need to upload using router with fast upload speed and for other downloads I need to use another interface which is connected to a router with fast download speed.

If this is possible how I can do it?

È stato utile?

Soluzione

Its possible by using route add command in linux

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top