Home / Port numbers / Port 8009
Port 8009: Google Cast, and Tomcat AJP
Controlling Chromecast devices, or linking a web server to Tomcat. Port 8009 uses TCP.
- Port
- 8009
- Commonly used for
- Google Cast, and Tomcat AJP
- Transport
- TCP
- Encrypted
- Yes for Cast; no for AJP
- Range
- User (registered) port, 1024 to 49151
- Our advice
- Local network only: never forward it from the internet
- IANA registration
nvme-discNVMe over Fabrics Discovery Service (TCP)
Registration: IANA Service Name and Transport Protocol Port Number Registry, retrieved 15 November 2026. The registered name can differ from the everyday use, because popular software often adopts a port without registering it. The description and advice are written by Home Net Guide and describe common practice: any program can be set to use any port.
What port 8009 is used for
Port 8009 has two unrelated uses. Chromecast and other Google Cast devices accept the control connection from the casting phone or browser on it. On servers it is the default of AJP, a protocol that connects a front-end web server to Apache Tomcat.
Should port 8009 be open?
Cast traffic belongs on the local network only. On servers, a 2020 flaw nicknamed Ghostcat let anyone who could reach the AJP port read files from the web application, and sometimes run code. AJP should listen only on the local machine, and current Tomcat versions disable it by default.
Related ports
- Port 8008 (HTTP alternate (Chromecast)): a second HTTP port, used by Google Cast devices
- Port 8080 (HTTP alternate): a second web server, proxy or admin page
- Port 5353 (mDNS): finding printers, speakers and other devices on the local network
See all port numbers for the full list and how ports, TCP and UDP work.
Previous: Port 8008 (HTTP alternate (Chromecast)) · Next: Port 8080 (HTTP alternate)