I have a MacBook, a home network, five mobile hotspots, and five Raspberry Pis.
Each Pi is connected simultaneously to one mobile hotspot via wireless network, and to my home network via ethernet cable.
My MacBook is connected to the home network. From my MacBook, how can I send requests through the local network to the Pi, and then through the mobile hotspot, so that it appears like I'm making the request through the hotspot, rather than my home network?
NOTE: The point is to use the five hotspots as a pool of proxies that I can switch between programmatically, so simply connecting to the hotspot from my MacBook won't work.
If this question is off-topic or too vague, please let me know how and I can improve it.