[SR-Users] How to rewritehostport() dynamically?