Take the 2-minute tour ×

I have a situation like i have to create 100 ips virtually over a single system where each ip will perform their own request response task. I have written the application of request response in java for single real ip. How can i generate 100 virtual ip on a system and bind the request-response for each ip in java?

share|improve this question
Are you talking about virtual IP adresses? That's usually an administration job and not done from an application directly. You can bin to an IP adress from the application, but not create it. –  Joachim Sauer Oct 3 '12 at 5:44
add comment

1 Answer

The maintenance of IP numbers is a task for the underlying operating system and there is no support for it in the standard java runtime. Hence if you want to do this you must invoke commands directly in the same way as you would if you were to do this personably by hand, and you must be authorized to do so by the operating system.

This strongly hints that you may be using the wrong tool for the job. Perhaps you should consider opening a new question describing what problem you really need to solve and ask for suggestions on how to design it?

share|improve this answer
add comment

Your Answer


