Prab-27 commented on PR #55633:
URL: https://github.com/apache/airflow/pull/55633#issuecomment-3301154458

   > > Yes, it's working fine at` http://localhost:8080`, but I don't 
understand why we use port 8080—and why, when dealing with the Airflow API or 
UI, it redirects to port `28080` ?
   > 
   > The `8080` is the port that the API server is running on. Docker uses a 
virtual network adapter layer, forwarding port `8080` to `28080` on the actual 
host network adapter connected to the machine. When you are in the container 
(`Breeze` container in this case), you are on the same network layer where the 
API is running. So that if you are accessing the API from inside of the 
container we uses `8080` for API/UI and if outside of the container (`Breeze` 
container in this case), it requires `IP:28080` where IP can be the local host 
if you are on your machine terminal, local IP if you are in the same local area 
network, public IP (port forwarding, NAT IP) if from the internet.
   
   Thanks for the thorough explanation—really appreciate the clarity and 
context!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to