问题 I have a need to make sure the client side of the TCP connection goes through a particular (IP) interface. The standard way would be to bind() the socket to the IP:0 , before the connect() . I started looking at tokio::net::TcpStream::connect() and friends, which doesn't seem to have a way to do this. I took a step back and looked at std::net::TcpStream , which doesn't have it either. Am I missing something, or do I need to go through some lower level APIs? 回答1: The best way of doing this at