Socket.IO setting poll timeout - node.js

I'm using Socket.IO on Node.js.
The Example here: http://socket.io/#how-to-use
First Example.
I have tested on my computer, it works great. ( Installed on VPS, connect by IP. not localhost )
But the problem is, my friends, they visit the page:
http://112.78.8.221:8085/
Press F12 for debug , under Console, they show not thing.
But in my browser console ( Chrome, Firefox ) , I see a object return.
On debug of my friend:
I see :
jsonppolling closed due to exceeded duration
setting request GET /socket.io/1/jsonp-polling/blablabalblabal
Setting poll timeout
discatding transport and same as xhr-polling, timeout and discard.
So, both of us used latest version of Chrome and FF, can u guys help on this one? a week with this problem already :(

I believe there is something strange going on with his network. Maybe he is going through a proxy connection or something? I was able to hit your service and got an object back without a problem. Some offices and universities will also block ports other than the common 80, 443, 22, etc. If you can, try hosting on a lower port number, or if possible on port 80 to eliminate that as a cause of the problem.

Related

How to start and Bid Port 8080 to be able accessed by Oracle in browser - 127.0.0.1:8080

I need your help.
So, I Installed an Oracle 11G R2 Express Edition. But when I tried to open the Database Home Page in //localhost:8080/apex/ or
//127.0.0.1:8080/apex/, I always got error mssg on my browser (I Used Google Chrome and Baidu Browser).
Here is the Error Msg Pic on Google Chrome And
This one also.
I had tried running this code on my Sql Command Line
connect system
begin
dbms_xdb.sethttpport('8181');
end;
/
Press enter
And tried to access ://localhost:8181/apex/ on my browser, but there is no change.
I checked all the listener port with netstat -a And find out that there is no port 8080 as The Listener/ NO 127.0.0.1:8080.
Then I checked my Listener Status and got THIS
Based on the Listener Status and List of listener port got by netstat -a, I tried access http://0.0.0.0:1521/apex/ on my Chrome browser. GOT THIS
I really have no Idea what should I do. I had read and tried many, but no change at all.. Please if somebody here can help me solve this problem. I would thank and appriciate for all the helper so much..
Do I need to instal XAMPP?
I had turned on / off my firewall from control panel. But there's also no change. Should it be ON / OFF?
Note :
Im using Windows 7 - 32 Bit
Plese give the answer with the detailed steps, as Im not really good about
computer and A new comer in Oracle.
Thanks

Does node.js server need internet connection to run?

I disable the internet connection and run the node server npm start, then it throws the error:
And now enabling internet connection and running the server works fine:
So, I want to confirm if this really needs to be connected to the internet while starting the server?
If it really needs internet connection, then is there any idea to run the server offline?
If I connect to the internet and run the server and there after plug out the internet connection then there's nothing goes wrong. Everything works fine. I don't know why just running the server requires the internet connection.
OMG! It's really cool! I got it working offline after hard research in my code using 127.0.0.1 instead of localhost for mongo uri.
Using localhost needed for me to connect to the internet.
And using 127.0.0.1 worked in both condition i.e. with internet connection and without internet connection.
But, really I'm totally amazed of this.
I found the really cool topic on this which made me clear about this.
If you use 127.0.0.1, then (intelligent) software will just turn that directly into an IP address and use it.
And there's no guarantee that your hosts file will actually be used for that resolution (first, or at all) so localhost may become a totally different IP address.

Socket.IO Connection Not working on University Wifi

I have created an chat app using Socket.IO . It works fine on my home internet. But whenever I am at my university and connected to versity wifi internet, I can't get connected at all. Its facing 'net::ERR_CONNECTION_TIMED_OUT' error.
Here is the url: demo.codesamplez.com/ultrachat/demo.html (You will may get it OK, as I do on home)
I guess, this might be some kind of firewall issue or something?
Does anybody has any clue how to go forward for solving this? Thanks in advance.
Switching from HTTP to HTTPS should get around the problem with incompatible proxy server. That forces the proxy to use HTTP tunneling to maintain the connection instead performing whatever magic it does.

Socket.io on FF 11 and Chrome 18.0?

I am having some issues with websockets and socket.io.
On localhost, socket.io seems to work ok but when I push to production on no.de, on FF 11 and Chrome 18.0, it takes forever to connect and after about 5 seconds the connection is lost and not reestablished. It works fine on Safari. This is with and without configuring the transports with websocket included.
When I configure the transports without 'websocket', all is well, connections are quick and not dropped. So I have it working now, but not as I would like it to.
Two things I am confused on:
- I thought these browser versions supported websockets.
- I thought socket.io would default to the next best transport solution.
Any ideas on what I'm doing wrong?
It seems that No.de servers don't proxy correctly. I don't know the details. I've found the info here:
http://discuss.joyent.com/viewtopic.php?id=30975
You won't get the job done unless you pay! As always. :-)

Minecraft Connection Errors

This is probably on the wrong site, so go ahead and move it if you have to... but I have been getting this same problem for the past week and it's really starting to irritate me. When I try to join my friend's MC server, I get an error saying "Disconnected Took too long to login." I googled the error and found that it could possibly be because the minecraft member authentication servers are down, but I eliminated that possibility by having my friend login to my account. It worked fine for him with the same server.
I also thought that maybe my minecraft client wasn't up to date with the server, so I tried updating my client with the update that the server used(12w07a) but that didn't change anything.
Then, I tried the idea to port forward my router to 25565, but that didn't do anything. My friend said sometimes ISP's(mine is verizon fios) block certain ports from being forwarded. If that's the case, is there any way of getting around it?
So I am not sure what exactly is causing the problem. Anybody have any ideas?
If your connection worked fine before this past week, it wouldn't make sense that Verizon is suddenly blocking certain ports. More than likely, there are some odd network settings floating around in your computer. If you're not sure if port 25565 is the correct port to forward, you can Enable DMZ (if your router supports it), which is basically forwarding ALL your ports (be sure to set it to your correct LAN IP, which can be found by command-prompting 'ipconfig'). If you have no software firewalls turned on, and you have enabled DMZ, there really shouldn't be any more networking issues...

Resources