I completed the following tutorial:
http://www.ibm.com/developerworks/library/mo-monitordevices-app/index.html
Next, I launch the app on BlueMix and click on the geo-starter Visualizer link. It launches the screen but I cannot see any of the connected devices on my screen. See screenshot of debug mode in browser. It seems like I am unable to connect to the MQTT server from my environment. This looks like a possible issue with the firewall on my network.
Couple questions:
How do I debug this further to determine if this is a firewall issue or something else?
The MQTT server seems to communicate via port 1883 as per instructions to the MQTT server url, see below:
mqtt1.m2m4connectedlife.com:1883
If my network is potentially blocking this port, is there an alternative port I can use such as port 80 to communicate with the MQTT server?
Would greatly appreciate any feedback on this!
Thanks!
mqtt-error
The corporate firewall was in fact the issue here. They won't allow traffic out on alternative ports without authorization which takes time. This port is reserved for MQTT traffic so hopefully it can be opened up once the traffic is better understood.
Related
I have created a server-side and client-side console based Chatroom. I have done the port forwarding and also added the inbound rule to the firewall settings both in client-side and server-side. It is working fine with computers on the same network but when I connect to the server/socket with different network(mobile hotspot) it doesn't work. I know my public ip address and I have it tried using it also. I am using TCP connection and a port-'55555'. I have windows 10 os on my laptop. Also tried after disabling the virus protection, it didn't work.
Can you please suggest some ideas regarding how to make it work?
Few days ago I wanted to launch my own Agario server. I assumed not to spend any money on hosting/vps etc. After a long search I found Bluemix PaaS, I put open source Agario clone Ogar (https://github.com/OgarProject/Ogar) in them and server has already started in 1523 port, but when i try to connect to this server via agario site ( connect("ws://appname.eu-gb.mybluemix.net:1523") ) I can't connect. I tried also other ways e.g. prepared agar.io link (agar.io?ip=appname.eu-gb.mybluemix.net), but nothing worked.
Has anyone met similar problem?
Inbound traffic is only on standard HTTP/HTTPS ports 80/443. Bluemix will tell your application what port to listen on with the VCAP_APP_PORT env variable. Inbound requests are then mapped to that port. So, once you bind to the VCAP_APP_PORT port, you should be able to connect to : ws://appname.eu-gb.mybluemix.net
I'm not sure whether to ask this question on a programming forum or linux administration forum as it involves both programming with web sockets and server admin. Basically I am trying to follow this guide "http://41j.com/blog/2014/12/simple-websocket-example-golang/". I have a centos basic server that has a static IP and I've port forwarded it to ports 22 and 80 (ssh and http). I can compile and run the server app fine, but i cannot connect the client. I'm currently out of ideas since I've never messed with networking before. I read somewhere that html5 websockets go through ports 80 and 443 when given an external IP. What I want is to start the server app on port say something like 1445 and then lets pretend my external IP is 244.214.21.44 and then have client connection string look like 'ws//244.214.21.44:1445/echo'. What am I missing, do I need to install apache or something?
Thanks for reading.
I have an application in mind which needs to communicate with an external (internet facing) "server".
The protocol itself is going to be really simple, and I was planning on doing everything over TCP/IP via Port 80 (or 8080) in order to hopefully pass seamlessly through firewalls. My "server" will be listening on port 80 (or 8080) for requests from my application. It will not actually be a web server (i.e. not expecting any HTTP traffic).
I have control over the network setup of the "server", but not the client environment. I will be coding both the client and server applications, so have control over those.
I have not really attempted any TCP/IP communication out of a LAN environment before, am I missing something obvious? I suppose my question is more like this: my client app is going to be run on all sorts of customer networks, of which I have no access to. Is this a sensible approach?
I would be most grateful for any hints/tips/gotchas.
For your use case, I think a better idea is to use http tunnel, because some firewalls will block non-HTTP traffic even if you are using port 80/8080.
I am doing socket-client programming in C#.
I have written TCPListener on Socket server side.
It works fine when I try to connect to it from client side on same machine. But if Socket server and client both are on different machine, I get exception saying "No connection could be made because the target machine actively refused it".
I checked socket information like ip address and port number on both the side which are absolutely correct.
I checked Antivirus log, it clearly stated that Antivirus/Firewall blocking the ip traffic.
I can't change Antivirus/Firewall settings as these are disabled by an Administrator.
Is there any programmatic way to tackle this problem? Is there any option while writing TCPLister or socket client which can provide me solution to tackle issue of Firewall.
Any help that can be provided would be greatly appreciated. Thank you.
I don't see how this could be done. If the firewall blocks the traffic, the firewall needs to be configured accordingly so traffic is allowed. There's no other way.