Number Of Sockets on One pc - Please help!

Hi.

I need to make a number of connections to a server from the computer my application will run to. Suppose that I can have a very good computer and resources is not a limit, is it possible to have a number of sockets (namely 20) opened on the same port and ip address.

for example:

ipAddress ="IP Address of the server";

Port ="Port of the server"

for(int i=0;i<20; i++){

Socket socket =new Socket(ipAddress, Port);

}

[676 byte] By [Bledara] at [2007-11-27 10:29:33]
# 1

Yes and you don't need unlimited resources to create just 20 connections...

BTW example is bad.

Michael.Nazarov@sun.coma at 2007-7-28 17:58:05 > top of Java-index,Core,Core APIs...