Socket client, can I use any source IPs?

When we create a socket for client side, we still can use bind to bind a IP address with client socket.

Based on my understanding, if I have mutiple NICs in the machine, I can use the different IP address to bind the socket with a specific NIC. But my question is, can I bind socket with a IP which is not belongs to any NICs in machine ? Is this allowed? I guess it should be ok, the only thing is server may not be able to reach the client since the source IP doesn't belongs to any NICs.

Thanks in advance.
Topic archived. No new replies allowed.