开发者

Free web host with an open TCP port? (needed 4 websockets) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
开发者_开发技巧

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 4 years ago.

Improve this question

I'm working on a HTML5 project with websockets and canvas, and I hit a brick wall. Can't find any server with an open TCP port I can use for the websockets.

I' talking about something like this:

this._connection = new WebSocket("ws://81.213.217.144:8005");

I tried looking for a port on my college's server, but they've got all theirs closed (except for a UDP port which is useless for me here). Also tried 000webhost.com, no luck.

Does anyone know (if there are) any free web hosts with open TCP ports?

PS: my ISP will pretty much not allow me setting up a server at home. all ports are hidden/blocked/whatever.


Pretty much all hosting companies allow you to run services on port 80 and 443 (web ports). You should be able to run a WebSockets server on one of those ports. The pywebsocket project can run as a standalone WebSockets server or as a module with Apache which would allow you to server WebSockets on the same port that you are serving web pages.

Alternate if you just need to be able to send messages between WebSockets clients (i.e. you don't need a special WebSockets server), you can try using pusherapp. They allow you to have up to 5 WebSockets clients at a time for free.


Set up your own server on your computer, and configure it bind to only IP 127.0.0.1. Then it won't leak off your machine and upset your ISP.

You can do all the development work you want, and move to a real web host when it is time to deploy the project. (Linode and other VPS providers can be pretty affordable if your needs are meager.)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜