• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to test a server and client on the same computer

 
dave green
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is probably a simple one and I am being stupid, however,

I am making a simple server program to receive results from a test on a clients computer, I have checked through everything and it appears to be fine. I am trying to test both programs on the same computer just to check it works, is this possible and how should I do it. At the moment I am just opening both and nothing happens although both function normally on their own they dont interact.

Thanks for any help,
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The cleanest way to test both on one machine is to start two JVMs, server then client. Keep a couple command windows open and make bat files or whatever it takes to start them up easily.

Have you run through the Sun Networking Tutorial? They have many small but complete examples.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!