Shiny runApp port number changes when deployed in linux VM

Hi
I'm new to Rshiny, i recently, created a new VM in azure and hosted a shiny App.
when i try to host it in a local server by assigning a port number it will host the Application but the Port number is changing.
for example :
this is my ip address in 20.55.xxx.xx:8787
and i have created a shiny app and wants to host it in port number 3505 using R terminal
shiny::runApp(port=3505)
expected Url "http://XXXXXXXXXXXXX:8787/p/3505/"
the url it is providing is "http://XX.XX.XXX.XX:8787/p/a574e02e/".

(ip hidden)

it was working as expected in R 3.5.1 version
sessioninfo:
R version 3.6.3 (2020-02-29)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 18.04.4 LTS

Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.7.1
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.7.1

locale:
[1] LC_CTYPE=C.UTF-8 LC_NUMERIC=C LC_TIME=C.UTF-8 LC_COLLATE=C.UTF-8
[5] LC_MONETARY=C.UTF-8 LC_MESSAGES=C.UTF-8 LC_PAPER=C.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=C.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] shinydashboard_0.7.0 shiny_1.5.0

loaded via a namespace (and not attached):
[1] Rcpp_0.12.18 digest_0.6.15 withr_2.1.2 later_1.1.0.1 mime_0.5 R6_2.4.1
[7] xtable_1.8-2 jsonlite_1.7.0 magrittr_1.5 rlang_0.4.8 promises_1.1.1 tools_3.6.3
[13] httpuv_1.5.4 fastmap_1.0.1 compiler_3.6.3 htmltools_0.5.0

VM details:
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic

I want to know why the port number is changing to alpha numeric instead of number which i specified

also when i tried to look at shiny.trace, i got to know that it is adding clientdata_url_pathname

Thanks

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.