I have installed R Shiny server on Ubuntu 18.04.3 LTS (GNU/Linux 5.0.0-1025-azure x86_64) and also RStudio. I have allowed on shiny server config file the Host Per-User Application Directories, and it works well when I test using http://:3838//hello/. When I run the app from RStudio on the same server using
runApp("ShinyApps/hello/", launch.browser = T , port = 5050)
with a specific port the app launches with a random port, http://:8787/p/52daa6b8/. When I share the url , it returns Connection refused.