I added two default routes that direct all traffic to a single virtual network card. Then I want to send the test program data directly from the physical network card. I first used bind()
, but an error occurred while establishing the connection: [connect: no route to host]
.
On Windows and Linux, I can use the bind()
function to bind network cards to send data. Is there any way to do it on a Mac?