Shiny: Port numbers argument within runApp


Is there a beginner friendly resource that explains the meaning behind the port numbers argument within the runApp (Shiny)?

I was blindly fiddling around with the runApp command (without fully understanding what they mean). I realized that if I enter the ip address of the virtual machine that has been assigned me to along with port:80, I am able to make my shiny app shareable with my colleagues within my company.

Example, I can share this link with my colleagues: and they can utilize my shinyApp.

I also see that if I use a different port number, it appears that I can run a completely separate shiny app and have my colleagues use that app for a different purpose.

Example: I can also point my colleagues to and have them access a different shiny app concurrently.

Is this how the port numbers are supposed to work? I have limited understanding of the mechanics behind serving dynamic websites to end-users and am trying to figure out the details. For background, due to the sensitive nature of the company's data, hosting the app on an external server (e.g. is not currently an option for me.

Any help and guidance would be much appreciated!


runApp(appDir = list(ui = ui, server = server),
       launch.browser = TRUE,
       port = 80,
       host = getOption("", ""))
> sessionInfo()
R version 3.6.3 (2020-02-29)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows Server x64 (build 14393)

Matrix products: default

[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252   
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

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

loaded via a namespace (and not attached):
[1] compiler_3.6.3 tools_3.6.3    packrat_0.5.0 

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