Hello,
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: http://172.my.ip.address/ 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 http://172.my.ip.adddress:4000/ 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. shinyapps.io) is not currently an option for me.
Any help and guidance would be much appreciated!
Thanks
runApp(appDir = list(ui = ui, server = server),
launch.browser = TRUE,
port = 80,
host = getOption("shiny.host", "172.my.ip.address"))
> 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
locale:
[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