Join GitHub today
net: cannot bind network card to send data on macos #32722
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 occured 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?