UDP service through Caddyfile

1. The problem I’m having:

I want to enable a UDP service through Caddy.

2. Error messages and/or full log output:

PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.

3. Caddy version:

v2.7.0.

You’re probably looking for this :slight_smile:

Or this, which allows basic Caddyfile stuff.

1 Like

I had see
My profile is

{
	"apps": {
		"layer4": {
			"servers": {
				"example": {
					"listen": ["127.0.0.1:9005"],
					"routes": [
						{
							"handle": [
								{"handler": "echo"}
							]
						}
					]
				}
			}
		}
	}
}```
But the UDP protocol was not activated
when  i    netstat -an |grep 9005
only display
tcp4       0      0  127.0.0.1.9005         *.*                    LISTEN

Try the plug-in I mentioned. It allows using just the Caddyfile.

1 Like

thanks you
i had solved
address should is udp/127.0.0.1:9005

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