[FIX] Honor custom HTTP ports

Fixes #803