You can set up multiple IP address for a NIC in both Windows and Linux. The key is to run off DHCP address assignment and to set the IP addresses manually.
In Windows, go to the Advanced Properties for the TCP/IP setting for your network connection. You can add multiple IP addresses there.
In Linux you can use ifconfig to assign multiple IP addresses. You can also make configuration file changes to do the same but those changes are distro-specific. Try googling "linux multiple virtual ip addresses".
I have a resource that explains this in a little more detail with some examples but it is not free. I can provide a URL if you are interested.
Thanks for that.
Can you send me the link?
BTW, does that solution involve any C/C++ code or any "non portable" stuff?
Setting up virtual ip addresses is platform specific so it is non portable.
Regarding a link, I already gave you google search terms.
I was refering to that:
"I have a resource that explains this in a little more detail with some examples but it is not free. I can provide a URL if you are interested."
So that I can have an idea about price.
I'm sorry, I didn't reread my post so I didn't know which link!
The book JBoss In Action (http://www.manning.com/jbossinaction), in chapter 15, has a section on setting up virtual IP address, including Windows dialog screen shots and Linux command lines.
That was really appreciated.