How to run the same service twice or more?

Windows

Page 1 of 1

4 Replies - 1047 Views - Last Post: 21 September 2009 - 11:26 AM

#1 skwo   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 29
  • Joined: 19-September 09

How to run the same service twice or more?

Posted 20 September 2009 - 09:43 PM

Hi, I'm programming a Server-Client software, where both the server and the client are services. In ideal situation the server service will run on its own PC, and each client on its own, but I'm not in an ideal situation and have access only to 1 PC so for testing I have to run the server and the client(s) on the same PC. Its all fine if I only want to test 1 client at a time, but how to run multiple instances of the same service? Installing it with a different name maybe?
The programming language is C#.

Thanks!

This post has been edited by skwo: 20 September 2009 - 09:53 PM


Is This A Good Question/Topic? 0
  • +

Replies To: How to run the same service twice or more?

#2 Trakker   User is offline

  • A$$hole Extraordinaire.
  • member icon

Reputation: 13
  • View blog
  • Posts: 2,386
  • Joined: 06-June 01

Re: How to run the same service twice or more?

Posted 21 September 2009 - 09:10 AM

dunno the exact answer to your question, but I do know an easy workaround. You can use Sun's VirtualBox (FREE) to run virtual copies of windows all off one machine, all networked together. Would be ideal for your situation, so you don't have to rework the code :-)
Was This Post Helpful? 0
  • +
  • -

#3 skwo   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 29
  • Joined: 19-September 09

Re: How to run the same service twice or more?

Posted 21 September 2009 - 10:28 AM

Trakker
Thanks for the replay! I already considered this option and running 1-2 virtual machines on XP with 512MB ram will kill the PC :P. However 1 virtual pc probably will be enough, I'll try this solution.
But still would like to know the answer to the original question

Thanks!
Was This Post Helpful? 0
  • +
  • -

#4 baavgai   User is offline

  • Dreaming Coder
  • member icon


Reputation: 7507
  • View blog
  • Posts: 15,558
  • Joined: 16-October 07

Re: How to run the same service twice or more?

Posted 21 September 2009 - 10:49 AM

In a client server architecture, a server should be able to support multiple simultaneous clients. This sounds like a design issue.
Was This Post Helpful? 0
  • +
  • -

#5 skwo   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 29
  • Joined: 19-September 09

Re: How to run the same service twice or more?

Posted 21 September 2009 - 11:26 AM

baavgai oO
We misunderstood each other, my server can theoretically support unlimited amount of clients, but to tweak the server I have to run more than one client at a time from on PC. Since client implemented as service I have no idea ho to execute the SAME service form one machine. There is nothing to do with a "design issue"..
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1