After my upgrade to OpenACS 5, I'm having a similar problem with non-standard ports. It appears that the util_current_location proc has been rewritten.
Here's Vinod's post about a closely related issue:
https://openacs.org/forums/message-view?message_id=107243
I'm trying to track down a solution to this.