Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Socket listening to multiple ports.

807591May 15 2008 — edited May 15 2008
Hi all, I am new to java programming and I need to program a java program that the socket server will open 20 port and keep listening. The client will connect to any of the 20 port and send information.

I have tried using array to open the port. however, there is some error.

I tried searching the website however those example one shows opening one port.

Thanks for reading
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 12 2008
Added on May 15 2008
11 comments
874 views