5

!rant

Is there any alternative to socket.io that doesn't need to expose a server ip directly to any client, needing to set up a full nginx anti ddos/auth config and more?

There is the live-ajax way that requests progress, but it feels more like a hack each time. (especially if the site should be able to handle multiple tabs with different progress)

I thought maybe some framework has live requests inbuilt to update content from a server worker model. (without exposing the server ip)

Comments
  • 1
    Try featherjs :)
  • 0
    That is a dumb question.
    If you want random clients to connect, you have to expose the server ip/port to the world.
  • 1
    @cr78 that sounds interesting, but it relies on socketio - does it come with automatic auth, sessions etc setup already? (judging by the installation guide "feathers-authentication-*")

    @magicMirror Not with ajax and sessions, since cloudflare can handle that.
  • 0
    @JoshBent Whatever man. Cloudflare acts as a proxy between your server and your clients, essentially blocking ddos, and acting as a load balancer. If you think that means that your server is not exposed to the internet, think again.
  • 0
    @magicMirror Cloudflare does act as a proxy making it impossible to get the actual server ip. All I said was that I don't want the IP of the server to be exposed to the client. (socket.io does this in the source)
  • 1
    Could setup a reverse proxy with domain name and internally proxy the request to another IP. That way you'll only see the ip of the proxy server. Very possible with NGinX!
  • 1
    I use a domain name which I connect to which internally proxies the connection to the application server :)
  • 0
    @linuxxx That's what I have in many projects, but that needs still the whole setup, since the proxy can be ddosed, flooded etc too, so it basically replaces one server with another. That's why featherjs seemed so interesting - since it seems that it packs all the auth and sessions automatically? (couldn't check it out in detail yet, would be awesome if somebody could clear that up)
Add Comment