Bug 10: Bug 9: Fix port always return 443 issue.

Fixed #10. Fixed #9.