# Server and Client on one instance of a game

**URL:** https://discourse.processing.org/t/server-and-client-on-one-instance-of-a-game/2403
**Category:** Coding Questions
**Created:** [August 6, 2018, 2:55am UTC](https://discourse.processing.org/t/server-and-client-on-one-instance-of-a-game/2403 "2018-08-06T02:55:08Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![kfrajer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kfrajer/32/196_2.png) [@kfrajer](https://discourse.processing.org/u/kfrajer)
#### Post date: [August 9, 2018, 8:21pm UTC](https://discourse.processing.org/t/server-and-client-on-one-instance-of-a-game/2403/5 "2018-08-09T20:21:56Z")

</div>

> [@FurryNightShade](#):
>
> Can I have a client connected to a server on the same device?

Yes, you can. You can have even one server and multiple clients in the same machine. The code from [this](https://discourse.processing.org/t/server-client-reply/1877/11) should be a good starting points. You can check the library documentation and see if it suits your needs.

Kf

---

_[View the full topic](https://discourse.processing.org/t/server-and-client-on-one-instance-of-a-game/2403)._
