Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
That is a dumb question.
If you want random clients to connect, you have to expose the server ip/port to the world. -
@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. -
@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.
-
@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)
-
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!
-
I use a domain name which I connect to which internally proxies the connection to the application server :)
-
@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)
Related Rants
-
C0D411That sad sad moment you spot someone returning HTML in an ajax request 🥺 Why lord must you punish me?
-
Badr7Phone call... Caller: we contact you to arrange an interview for Java developer position, what time is good w...
-
Xaotic5So I just got Ajax, how do i make a GET request now? Google and stackoverflow didnt help
!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)
undefined
ws
socket.io
ajax