plasma-umass / browsix

Browsix is a Unix-like operating system for the browser.
Other
3.15k stars 181 forks source link

Question: HTTP external Access #68

Open Dletta opened 5 years ago

Dletta commented 5 years ago

I have tried to understand whether I could run an HTTP server in my browser that others in my network (or even publicly) could access. I am unable to find this in clear terms in your documentation.

Will I be able to serve a static website from my browser to others in the web?

ids1024 commented 5 years ago

This would be a nice feature. But I'm almost certain browsers don't provide an API that would allow this. (Unless it was communicating with a piece of software running outside the browser that could forward traffic in some way.)

Dletta commented 5 years ago

@ids1024 Yes, that makes sense. The socket API seemed to imply you could make an HTTP connection. It was unclear whether that was about inside a website to a local http client or not.

ids1024 commented 5 years ago

Although I haven't tried it, I believe the socket API in Browsix is only usable for IPC. You can make a request to a server running inside Browsix from another program inside Browsix.

Dletta commented 5 years ago

That makes sense. You think the team will answer here? Otherwise will close the issue

bitnom commented 5 years ago

We were talking about this over in the gundb gitter. In theory, an adapter could be made to work with webrtc. Will I be the one to make that happen? Probably not. Would it be awesome? Probably yes.