# udp and tcp listener

**URL:** <https://community.fly.io/t/udp-and-tcp-listener/24574>\
**Category:** General\
**Tags:** login-only\
**Created:** [April 13, 2025, 7:38pm UTC](https://community.fly.io/t/udp-and-tcp-listener/24574 "2025-04-13T19:38:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![miwashi](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/miwashi/32/40898_2.png) [@miwashi](https://community.fly.io/u/miwashi)\
**Post date:** [April 13, 2025, 7:38pm UTC](https://community.fly.io/t/udp-and-tcp-listener/24574/1 "2025-04-13T19:38:04Z")

</div>

Anyone know if I can set up a tcp and udp listener?

app = “edu-echo”  
primary\_region = ‘fra’

[build]

[http\_service]  
internal\_port = 3000  
force\_https = true  
auto\_stop\_machines = ‘stop’  
auto\_start\_machines = true  
min\_machines\_running = 0  
processes = [‘app’]

[[services]]  
protocol = “tcp”  
internal\_port = 9000  
ports = [{ port = 9000 }]

[[services]]  
protocol = “udp”  
internal\_port = 9001  
ports = [{ port = 9001 }]

[[vm]]  
memory = ‘1gb’  
cpu\_kind = ‘shared’  
cpus = 1  
memory\_mb = 1024

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/fly1/original/3X/6/e/6e8955d00cb218e186ebbe3a6ab06fefdce15290.svg) [@system](https://community.fly.io/u/system)\
**Post date:** [April 20, 2025, 7:38pm UTC](https://community.fly.io/t/udp-and-tcp-listener/24574/2 "2025-04-20T19:38:55Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
