HTTPfy

Port 4317 (OpenTelemetry OTLP gRPC)

OTLP over gRPC: applications send traces, metrics and logs to the OpenTelemetry Collector.

Registered (user) port, 1024-49151 TCP Monitoring and logging Do not expose to the internet

What port 4317 is used for

OTLP over gRPC: applications send traces, metrics and logs to the OpenTelemetry Collector.

Security: should port 4317 be open?

Do not expose to the internet. If exposed for browser or mobile telemetry, put auth in front; otherwise anyone can inject data.

IANA assignment

Service nameProtoDescriptionAssigneeReference
opentelemetry TCP OpenTelemetry Protocol OpenTelemetry -

Registry dates for this port: registered 2020-12-09.

Check what is listening on port 4317

Linux: is anything listening on TCP 4317?
sudo ss -tlnp 'sport = :4317'
Linux / macOS: which process owns the port
sudo lsof -nP -i :4317
Older Linux / BSD (net-tools)
sudo netstat -tlnp | grep ':4317 '
Windows (Command Prompt)
netstat -ano | findstr :4317
Windows (PowerShell)
Get-NetTCPConnection -LocalPort 4317 -State Listen | Select LocalAddress,OwningProcess

Test it from outside

From another machine
nc -vz -w 5 HOST 4317
From Windows
Test-NetConnection HOST -Port 4317

Block port 4317 in the firewall

ufw
sudo ufw deny 4317/tcp
iptables
sudo iptables -A INPUT -p tcp --dport 4317 -j DROP
nftables
sudo nft add rule inet filter input tcp dport 4317 drop
Windows Firewall
New-NetFirewallRule -DisplayName 'Block TCP 4317' -Direction Inbound -Protocol TCP -LocalPort 4317 -Action Block

Related ports

All port numbers · Open port checker
Assignment data: IANA port number registry (public domain), retrieved 2026-11-10.