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

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

  •  20-06-2023
  •  | 
  •  

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?

有帮助吗?

解决方案

Its possible by using route add command in linux

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top