A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Sockets and Internet Protocols
Create Server Sockets using multiple ports
Joined: Sep 25, 2007
Nov 19, 2008 23:24:00
I want to create sockets in the server code in two different port (say 2407,3004).One is used to receive from and other one to send to my clients.
Similarly, I want create the sockets in the client end using for the said purpose.
A brief code snippet will help.
SCJP 5.0 | SCWCD 1.5
Joined: Oct 29, 2001
Nov 20, 2008 05:53:00
Sockets are two-way connections so you only need to connect once between a server and client. Have you looked at the
Java Networking Tutorial
"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
How To Ask Questions On JavaRanch
I agree. Here's the link:
subject: Create Server Sockets using multiple ports
To JavaRanch Moderators
Networked programing code
Multithreading a request in the server
accessing a server using socket connection
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013