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