# Simple UDP sample

**URL:** <https://forum.xojo.com/t/simple-udp-sample/53319>\
**Category:** Getting Started\
**Created:** [April 18, 2020, 8:04am UTC](https://forum.xojo.com/t/simple-udp-sample/53319 "2020-04-18T08:04:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bernd\_Kunath](https://forum.xojo.com/user_avatar/forum.xojo.com/bernd_kunath/32/7094_2.png) [@Bernd\_Kunath](https://forum.xojo.com/u/Bernd_Kunath)\
**Post date:** [April 18, 2020, 8:04am UTC](https://forum.xojo.com/t/simple-udp-sample/53319/1 "2020-04-18T08:04:38Z")

</div>

Im looking for a simple UDP sample.  
Im a beginner and the Language Reference doesnt support me with a simple UDP sample.  
I want to:  
\_\_\_ I want to find a network participant and identify him.  
\_\_\_ He is located in the same subnet.  
\_\_\_ I have to send three bytes as broadcast by UDP at port 9090.  
\_\_\_ A matching participant answers with 40 bytes.

Can somebody help me?

---

<div class="post-metadata">

**Author:** ![MarkusR](https://forum.xojo.com/user_avatar/forum.xojo.com/markusr/32/685_2.png) [@MarkusR](https://forum.xojo.com/u/MarkusR)\
**Post date:** [April 18, 2020, 8:17am UTC](https://forum.xojo.com/t/simple-udp-sample/53319/2 "2020-04-18T08:17:19Z")

</div>

here is something about broadcast and multicast  
[documentation.xojo.com/topics/communication/internet/communicating\_via\_udp.html](http://documentation.xojo.com/topics/communication/internet/communicating_via_udp.html)

---

<div class="post-metadata">

**Author:** ![DerkJ](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/e495f1/32.png) [@DerkJ](https://forum.xojo.com/u/DerkJ)\
**Post date:** [April 18, 2020, 10:45am UTC](https://forum.xojo.com/t/simple-udp-sample/53319/3 "2020-04-18T10:45:22Z")

</div>

If the applications are both made in Xojo. Just use AutoDiscovery it’s based on UDP and has examples in Internet/Networking .

---

<div class="post-metadata">

**Author:** ![Bernd\_Kunath](https://forum.xojo.com/user_avatar/forum.xojo.com/bernd_kunath/32/7094_2.png) [@Bernd\_Kunath](https://forum.xojo.com/u/Bernd_Kunath)\
**Post date:** [April 18, 2020, 11:39am UTC](https://forum.xojo.com/t/simple-udp-sample/53319/4 "2020-04-18T11:39:29Z")

</div>

At [documentation.xojo.com/topics/communication/internet/communicating\_via\_udp.html](http://documentation.xojo.com/topics/communication/internet/communicating_via_udp.html) everything has to be created from scratch. Since I’m not a professional I have a problem with that.  
The UDP AutoDiscovery examples in Internet/Networking doesn’t match well for me.  
I’m looking forward for more.  
Bernd

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [April 29, 2021, 4:21pm UTC](https://forum.xojo.com/t/simple-udp-sample/53319/5 "2021-04-29T16:21:54Z")

</div>


