# Server to client: how to transmit ellipse coordinates

**URL:** https://discourse.processing.org/t/server-to-client-how-to-transmit-ellipse-coordinates/570
**Category:** Project Guidance
**Created:** [May 31, 2018, 4:51pm UTC](https://discourse.processing.org/t/server-to-client-how-to-transmit-ellipse-coordinates/570 "2018-05-31T16:51:43Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![imaginitiveCODE](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/imaginitivecode/32/271_2.png) [@imaginitiveCODE](https://discourse.processing.org/u/imaginitiveCODE)
#### Post date: [May 31, 2018, 4:51pm UTC](https://discourse.processing.org/t/server-to-client-how-to-transmit-ellipse-coordinates/570/1 "2018-05-31T16:51:43Z")

</div>

How would i send the x and y coordinates of an ellipse from one computer to another. Any help would be great thanks.

---

<div class="post-metadata">

### Author: ![REAS](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/reas/32/16_2.png) [@REAS](https://discourse.processing.org/u/REAS)
#### Post date: [June 1, 2018, 12:07am UTC](https://discourse.processing.org/t/server-to-client-how-to-transmit-ellipse-coordinates/570/2 "2018-06-01T00:07:42Z")

</div>

You’ll find the reference for the Network library here: [https://processing.org/reference/libraries/net/index.html](https://processing.org/reference/libraries/net/index.html)

There’s an example to do this that comes with the Processing software. Open the Examples and then navigate to Libraries \> Network \> SharedCanvasClient and SharedCanvasServer

---

<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: [June 1, 2018, 5:55am UTC](https://discourse.processing.org/t/server-to-client-how-to-transmit-ellipse-coordinates/570/3 "2018-06-01T05:55:42Z")

</div>

An option is to use [OscP5](http://www.sojamo.de/libraries/oscP5/) library. Install it in your PDE using the Contribution manager. Check example under _Files\>\>Examples\>\>Contributed Libraries_ and also explore previous posts in the forum. They are a great resource.

Kf

---

<div class="post-metadata">

### Author: ![imaginitiveCODE](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/imaginitivecode/32/271_2.png) [@imaginitiveCODE](https://discourse.processing.org/u/imaginitiveCODE)
#### Post date: [June 1, 2018, 11:13am UTC](https://discourse.processing.org/t/server-to-client-how-to-transmit-ellipse-coordinates/570/4 "2018-06-01T11:13:14Z")

</div>

It isn’t working i start the server on computer 1 that have the same port and on computer 2 run client but on computer 2 i do not receive anything from the server. Am i doing something wrong?

---

<div class="post-metadata">

### Author: ![colouredmirrorball](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/colouredmirrorball/32/234_2.png) [@colouredmirrorball](https://discourse.processing.org/u/colouredmirrorball)
#### Post date: [June 1, 2018, 12:11pm UTC](https://discourse.processing.org/t/server-to-client-how-to-transmit-ellipse-coordinates/570/5 "2018-06-01T12:11:05Z")

</div>

Have you specified the IP address in the client sketch? By default it is 127.0.0.1 but that references to the same computer (i.e. the sketches must be running on the same machine).

You have to find out on which IP the server is running. In Processing you can do this with `println(Server.ip());`, which is correct most of the time but it’s not guaranteed. It prints the device’s IP of the first network connection. So if you have one connected internet adapter that’s fine. But if you have multiple (connected with both wifi and ethernet cable for example) it might not be. In that case you can (on Windows) open a command prompt (hit the windows key then type “cmd”, or use windows+r and type “cmd”) and use the command “ipconfig”. You should get a list of all connected network adapters. The IP address will probably look something like this: “192.168.XXX.XXX”, indicating a local network. But it could be something else as well depending on your router.

---

<div class="post-metadata">

### Author: ![imaginitiveCODE](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/imaginitivecode/32/271_2.png) [@imaginitiveCODE](https://discourse.processing.org/u/imaginitiveCODE)
#### Post date: [June 1, 2018, 1:14pm UTC](https://discourse.processing.org/t/server-to-client-how-to-transmit-ellipse-coordinates/570/6 "2018-06-01T13:14:35Z")

</div>

Thanks so much it worked. I spent two days trying to find out what you just explained. Thanks again.
