-
server and client
My question is very basic , Is it possible to create and run Server and Client programs on same PC? if yes then how i mean by using different port number or anything else.
actually i need to do socket programming, some File Transfer(FTP operations),and other operations.
I don't have two separate computers for Client and Server.
please help me.
Thanks for your time.
-
Re: server and client
Yes it is possible, just connect to localhost. You can listen for incoming on a port and send outgoing on the same port no problems at all. As a general rule Java Scoket tutorials teach you to use local host on your own machine anyway!
Have a good :)
Chris
-
Re: server and client
Thank you Chris,
Merry X-Mas.
Lanpan