Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

When creating any socket, we don't provide a device name (like eth0, or wlan0). On my laptop, I have a wired interface (eth) and a wireless interface (wlan). I want to run one process on each interface simultaneously.

Is it possible? I'm using Ubuntu 12.10.

share|improve this question
What are you trying to do? (ie, why use 2 interfaces?) – Vreality Jan 10 '13 at 0:46

When you create a socket, you can bind() it to a specific IP address. Whichever interface is associated with that address will be used.

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.