Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible for an application to request a socket (tcp) and have it set the source address without using raw sockets? (the addresses would be bound to the interfaces. [no spoofing]). This would be a tcp client connection, not bind()ing to a specified address.

share|improve this question
yes- but it requires a bind to interface. Shouldn't this be on stackoverflow? – tMC Oct 3 '12 at 20:36
@tMC - not necessarily. There's no code (for example). I know it's not essential for Stack Overflow questions to have code, but that's certainly one vote against it being migrated. – ChrisF Oct 12 '12 at 15:42
up vote 1 down vote accepted

No, it is not possible without bind or raw sockets.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.