Cannot connect to localhost:8100

3,358 views
Skip to first unread message

camp...@gmail.com

unread,
Jan 2, 2013, 6:47:43 PM1/2/13
to shiny-...@googlegroups.com
Dear all,
I'm searching tools like shiny for web applications based on R. Shiny seems to suit what I'm looking for.

But I cannot make it works since Firefox browser says "Firefox can not establish a connection to the server at localhost: 8100" when I runExample("01_hello") in R. I've installed successfully shiny in R (version 2.15.2) and I'm working on a Mac OS X Lion 10.7.5. 

What am I doing wrong in my MAC?

All the best, shinny seems a promising software!

Josep M.,

PD: I tried in my windows XP and it works nicely.

Joe Cheng

unread,
Jan 2, 2013, 8:07:13 PM1/2/13
to shiny-...@googlegroups.com
Do you have an HTTP proxy configured on your Mac setup? You may need to tell it to bypass the proxy for localhost. If not, do you see any errors at the R console when you call runExample? Or another idea, what happens if you try http://127.0.0.1:8100/ instead (making sure runExample is running, of course)?


--
 
 

camp...@gmail.com

unread,
Feb 12, 2013, 11:21:07 AM2/12/13
to shiny-...@googlegroups.com
Thanks Joe,

Well, it works with http://127.0.0.1:8100/ but not with http://localhost:8100/. I do not know why it happens that!

Thanks,

Josep M.,

Joe Cheng

unread,
Feb 13, 2013, 2:25:25 AM2/13/13
to shiny-...@googlegroups.com
It sounds like you need to bypass the proxy for localhost.

If that doesn't fix it, make sure the following line appears in the file /etc/hosts:

127.0.0.1 localhost



--
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.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Mainul Hasan

unread,
Apr 18, 2013, 7:55:29 AM4/18/13
to shiny-...@googlegroups.com
I am facing the same problem in Mozilla and Chrome running on Windows 7. I tried the ehow method, didnt work for me. It works fine with http://127.0.0.1:8100/, but not with http://localhost:8100/. Also i get a "listening on port 8100" message on R. What should i do to fix these?

Joe Cheng

unread,
Apr 18, 2013, 4:49:41 PM4/18/13
to shiny-...@googlegroups.com
What do you get if you type the following commands in the Windows command prompt?
  nslookup localhost
  ping localhost

Also, the "Listening on port 8100" message is normal, it's telling you what to put after the colon in the URL in case the web browser wasn't launched on your behalf.

Neil Shephard

unread,
Apr 23, 2013, 3:38:43 AM4/23/13
to shiny-...@googlegroups.com

I've encountered this problem on one of my computers (I use two desktops and one laptop, all running Gentoo).

http://localhost:8100 either doesn't use CSS(?) to format the output, there are no tabs and the ui.R input panel is standard text and fields, no plots or tables are output.  I have a "Download" button to download the table that I'm displaying and clicking on this results in "Could not connect to remote server"


My /etc/hosts has...

127.0.0.1 localhost morgan

...and I can ping localhost....
# ping localhost
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.030 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.036 ms

I've noticed that after starting the server with runApp() it just reports "Listening on port 8100" and opens localhost:8100, but when I explicitly change this to 127.0.0.1:8100 in the R terminal I then see the loading of required packages that server.R does.  Does this suggests that perhaps the server.R isn't being loaded correctly?

The same code runs fine and as expected on my two other computers.

Not a game stopper, but would be nice to runApp() and have the web-page open directly (is there a way to specify the address in runApp() (can't see the option in the current PDF documentation for 0.5.0?).

Cheers,

Neil

Reply all
Reply to author
Forward
0 new messages