how to make my shiny server accessible from anywhere of the internet?

589 views
Skip to first unread message

姚文

unread,
Feb 24, 2015, 5:48:02 AM2/24/15
to shiny-...@googlegroups.com
Dear guys,

I build a Shiny APP and host it on my Linux server which is accessible using IP like this: 211.69.128.XXX. My APP is supposed to be accessible at:
211.69.128.XXX:3838:/myapp/. However, I found that my APP is only accessible from my University where my Linux server sits in. I searched a lot and guess maybe it is due to the firewall
configuration. But after I stop the "iptables" service, the problem still exists. I want to make my shiny app accessible from anywhere of the internet. What should I do? The following output maybe helpful. Any suggestion is greatly appreciated.


netstat -tulpn | grep 3838
tcp        0      0 0.0.0.0:3838                0.0.0.0:*                   LISTEN      15730/shiny-server

netstat -tulpn | grep :80
tcp        0      0 :::80                       :::*                        LISTEN      15346/httpd
tcp        0      0 :::8081                     :::*                        LISTEN      15346/httpd
tcp        0      0 :::8082                     :::*                        LISTEN      15346/httpd
tcp        0      0 :::8083                     :::*                        LISTEN      15346/httpd
tcp        0      0 :::8084                     :::*                        LISTEN      15346/httpd
tcp        0      0 :::8085                     :::*                        LISTEN      15346/httpd
tcp        0      0 :::8086                     :::*                        LISTEN      15346/httpd
tcp        0      0 :::8087                     :::*                        LISTEN      15346/httpd
tcp        0      0 :::8088                     :::*                        LISTEN      15346/httpd


姚文

unread,
Feb 24, 2015, 5:54:38 AM2/24/15
to shiny-...@googlegroups.com
Fix a typo: My APP is supposed to be accessible at: 211.69.128.XXX:3838/myapp/

在 2015年2月24日星期二 UTC+8下午6:48:02,姚文写道:

Winston Chang

unread,
Feb 24, 2015, 3:09:15 PM2/24/15
to 姚文, shiny-discuss
iptables controls the firewall on your computer, but I think the problem is that your university probably has a firewall that blocks incoming traffic.


--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/f309f4bd-634a-433b-9335-ce1b221d1fdb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

姚文

unread,
Feb 25, 2015, 2:24:59 AM2/25/15
to shiny-...@googlegroups.com, ywh...@gmail.com
Thanks for your response. Actually, several websites were hosted on my Linux server and this IP (211.69.128.XXX) is accessible from anywhere of the internet. Any further suggestion? Thanks in advance!

在 2015年2月25日星期三 UTC+8上午4:09:15,Winston Chang写道:

Winston Chang

unread,
Feb 25, 2015, 12:24:14 PM2/25/15
to 姚文, shiny-discuss
The only thing I can think of is that your university might be blocking port 3838 -- for example, it might be blocking all ports other than port 80.

To test this out, you could configure your web server (not Shiny) to run on port 3838 and test if you can connect to it from outside the university.

-Winston

姚文

unread,
Feb 27, 2015, 1:03:49 AM2/27/15
to shiny-...@googlegroups.com, ywh...@gmail.com
You are right. All the ports are blocked by the university except port 80. I guess I have to use port 80 for shiny and set a domain name for my App. Thanks!

在 2015年2月26日星期四 UTC+8上午1:24:14,Winston Chang写道:
Reply all
Reply to author
Forward
0 new messages