# How does one transfer the data in a String over the network to anther instance of the program

**URL:** https://discourse.processing.org/t/how-does-one-transfer-the-data-in-a-string-over-the-network-to-anther-instance-of-the-program/17894
**Category:** Libraries
**Tags:** homework
**Created:** [February 17, 2020, 9:17pm UTC](https://discourse.processing.org/t/how-does-one-transfer-the-data-in-a-string-over-the-network-to-anther-instance-of-the-program/17894 "2020-02-17T21:17:20Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![TechMaster04](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/techmaster04/32/14929_2.png) [@TechMaster04](https://discourse.processing.org/u/TechMaster04)
#### Post date: [February 17, 2020, 9:17pm UTC](https://discourse.processing.org/t/how-does-one-transfer-the-data-in-a-string-over-the-network-to-anther-instance-of-the-program/17894/1 "2020-02-17T21:17:20Z")

</div>

Hello

I’m writing a queue manager for a school project, and thought it would be cool if the names in the queue show up for everyone who’s running the program. I’ve tried a UDP server, but I couldn’t get that to work over my network (I’m not sure if this affects it, but my PC was on Ethernet and my laptop was on WiFi. Same network though).

Anyone know of a good way to do this? Thanks in advance!

Here is a link to my code: [Link](https://1drv.ms/u/s!AnXXk5PX0LXn6BusMyzDPdMWbSJA?e=isSWMb)

---

<div class="post-metadata">

### Author: ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)
#### Post date: [February 17, 2020, 9:41pm UTC](https://discourse.processing.org/t/how-does-one-transfer-the-data-in-a-string-over-the-network-to-anther-instance-of-the-program/17894/2 "2020-02-17T21:41:44Z")

</div>

Hello,

I am aware of these resources:  
[https://processing.org/tutorials/network/](https://processing.org/tutorials/network/)  
[https://processing.org/reference/libraries/net/](https://processing.org/reference/libraries/net/)

And there are examples that come with Processing:  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/0/0e61a1eb605f637a37ee27a130069d40457d0667.png)

There is also UDP and Websockets in the libraries with Processing:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/5/591b77285550c10006ca8050f56f557d3592da5a.png)

---

<div class="post-metadata">

### Author: ![TechMaster04](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/techmaster04/32/14929_2.png) [@TechMaster04](https://discourse.processing.org/u/TechMaster04)
#### Post date: [February 17, 2020, 10:13pm UTC](https://discourse.processing.org/t/how-does-one-transfer-the-data-in-a-string-over-the-network-to-anther-instance-of-the-program/17894/3 "2020-02-17T22:13:23Z")

</div>

Thanks! I’ll look into those and see how it goes

---

<div class="post-metadata">

### Author: ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)
#### Post date: [February 17, 2020, 10:53pm UTC](https://discourse.processing.org/t/how-does-one-transfer-the-data-in-a-string-over-the-network-to-anther-instance-of-the-program/17894/4 "2020-02-17T22:53:32Z")

</div>

There is also:  
[https://processing.org/reference/loadStrings\_.html](https://processing.org/reference/loadStrings_.html)

And a discussion of getting data from the web here:  
[https://processing.org/tutorials/data/](https://processing.org/tutorials/data/)

Have fun!

’ 🙂 ’

---

<div class="post-metadata">

### Author: ![TechMaster04](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/techmaster04/32/14929_2.png) [@TechMaster04](https://discourse.processing.org/u/TechMaster04)
#### Post date: [February 17, 2020, 11:14pm UTC](https://discourse.processing.org/t/how-does-one-transfer-the-data-in-a-string-over-the-network-to-anther-instance-of-the-program/17894/5 "2020-02-17T23:14:16Z")

</div>

Thanks so much! Indeed, I shall have fun!
