5

In the Substratum Initial Coin Offering (ICO), the White Paper talks about solving problems of the current Internet, by allowing hosts to become web hosts.

Based on reading of the White Paper, the team looks like they're intending to write Javascript that runs on any modern browser (IE, Safari, Chrome, Firefox) on any platform (Windows, Linux, etc) to turn it into a web server.

As the White Paper is very general, I'm not sure if the team's Javascript is also having some form of access to uPnP technology that tells the nearest router to forward port 80 into the (supposed) web browser that's running on the web server.

Does anyone familiar with current web browsers know if browsers are capable of:

  1. Providing access to uPnP that can tell routers to do port forwarding?
  2. Running a web server using Javascript?

Thank you. (I'm familiar with general programming, just not capabilities of current web browsers. Please limit responses to capabilities of web browsers)

chuacw
  • 1,685
  • 1
  • 23
  • 35
  • 2
    Check out the [Beaker Browser](https://beakerbrowser.com/) project. – Pointy Aug 13 '17 at 13:44
  • Interesting, i know that chrome and some other browsers can do peer to peer and read and write files – user7951676 Aug 13 '17 at 13:58
  • 1
    Yes, the requirement is possible. There are several options available. There is an extension that is a web server at Chrome, Chromium. Opera is shipped with a built in web server. Have been mulling around a similar concept for a while [Using requestFileSystem to mirror local directories at server](https://stackoverflow.com/questions/45391470/using-requestfilesystem-to-mirror-local-directories-at-server) – guest271314 Aug 13 '17 at 14:10
  • What have you tried to resolve own inquiry? Have you created a proof of concept for an implementation of requirement? – guest271314 Aug 13 '17 at 14:34
  • See https://stackoverflow.com/questions/18088586/building-web-server-using-chrome-socket-api, https://stackoverflow.com/questions/35899536/method-for-streaming-data-from-browser-to-server-via-http/ – guest271314 Aug 13 '17 at 14:51

1 Answers1

5

There are some JavaScript libraries such as nohost that use Service Workers to mimic a file server on the client-side. This is apparently possible because service workers are able to send custom responses to HTTP requests.

It might also be possible to run a server in a browser in an x86 emulator in JavaScript, though I don't know if this has been done yet.

Anderson Green
  • 30,230
  • 67
  • 195
  • 328