added support for peerweb apps & relays to use ports