Port 9418: Git protocol

Port 9418 (TCP) is used by Git protocol. The read-only git:// protocol. Most hosting uses SSH or HTTPS instead.

9418Port
TCPProtocol
gitIANA service name
DevOps & dev serversCategory

Port range

9418 is a registered port (range 1024–49151). Any user can bind to it; IANA records which service registered the number.

Security

Only open port 9418 to the hosts that need it. Prefer the encrypted variant of the protocol where one exists.

Open port 9418 in a firewall

ufw         sudo ufw allow 9418/tcp
iptables    sudo iptables -A INPUT -p tcp --dport 9418 -j ACCEPT
firewalld   sudo firewall-cmd --permanent --add-port=9418/tcp
Windows     New-NetFirewallRule -DisplayName "Git protocol 9418" -Direction Inbound -Protocol TCP -LocalPort 9418 -Action Allow

Check if port 9418 is open

nc -vz example.com 9418
Test-NetConnection example.com -Port 9418   # PowerShell
sudo ss -tulpn | grep ':9418 '   # what is listening locally (Linux)

Other devops & dev servers ports

Frequently asked questions

What is port 9418 used for?
Git protocol. The read-only git:// protocol. Most hosting uses SSH or HTTPS instead.
Is port 9418 TCP or UDP?
TCP.