Sorry, I'm not sure I understand the problem.
The RStudio Connect schedule just rerenders the HTML and should completely hide the render() call form you - I'm not sure where the port numbers come into this.
Is this more about RStudio rather than RStudio Connect?
Sorry - confused - but happy to try to help!