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

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

  •  20-06-2023
  •  | 
  •  

Question

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?

Était-ce utile?

La solution

Its possible by using route add command in linux

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top