Any way to allow inbound UDP traffic in sprites?

I did some simple test to see if sprite can receive UDP traffic:

  1. In sprite, run tcpdump.

  2. Outside sprite, send a UDP packet to the sprite:

    import socket
    
    SERVER_IP = “XXXXXXX.sprites.app” 
    SERVER_PORT = 8080
    
    sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
    
    message = “Hello UDP!”
    sock.sendto(message.encode(), (SERVER_IP, SERVER_PORT))
    
    print(“Message sent”)
    

tcpdump never sees the UDP packet.

Since one of the “official” use cases for sprite is “Long-Lived Services”, I think having a way to receive inbound UDP traffic can be very useful (e.g. for a QUIC server). If it’s already supported but I simply missed it, please let me know how to. Thanks!

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