RunPod Expose HTTP Ports Guide | Generated by AI

Home 2026.06

Question: How do I configure “Expose HTTP ports (max 10)” in RunPod?

Answer:

The “Expose HTTP ports” field tells RunPod which ports inside your container should be reachable over HTTP through its proxy. You enter a comma-separated list of port numbers (max 10).

How it works:

Critical requirement — bind to 0.0.0.0, not localhost:

# Jupyter
jupyter lab --ip=0.0.0.0 --port=8888 --no-browser --allow-root

# Common app servers
python -m http.server 8000 --bind 0.0.0.0
# FastAPI / uvicorn
uvicorn app:app --host 0.0.0.0 --port 8000
# Gradio
demo.launch(server_name="0.0.0.0", server_port=7860)

If you bind to 127.0.0.1, the proxy can’t reach it and you’ll get a 502.

Typical setup:

Field Value
Expose HTTP Ports 8888,7860,8000
Expose TCP Ports 22 (SSH — uses direct TCP, not the HTTP proxy)

Notes:

References:


Back Donate