简体   繁体   English

是否可以编写在现代浏览器(例如 Chrome、Firefox、IE、Safari)中运行的 Web 服务器?

[英]Is it possible to write a web server running in a modern browser such as Chrome, Firefox, IE, Safari?

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.在 Substratum 初始代币发行 (ICO) 中, 白皮书讨论了通过允许主机成为网络主机来解决当前互联网的问题。

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.根据对白皮书的阅读,该团队似乎打算编写可在任何平台(Windows、Linux 等)上的任何现代浏览器(IE、Safari、Chrome、Firefox)上运行的 Javascript,以将其转变为 Web服务器。

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.由于白皮书非常笼统,我不确定该团队的 Javascript 是否也可以某种形式访问 uPnP 技术,该技术告诉最近的路由器将端口 80 转发到在 Web 服务器上运行的(假设)Web 浏览器。

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?提供对可以告诉路由器进行端口转发的 uPnP 的访问?
  2. Running a web server using Javascript?使用 Javascript 运行 Web 服务器?

Thank you.谢谢。 (I'm familiar with general programming, just not capabilities of current web browsers. Please limit responses to capabilities of web browsers) (我熟悉一般编程,只是不熟悉当前网络浏览器的功能。请限制对网络浏览器功能的响应)

There are a few JavaScript libraries that implement a web server in a browser, such as nohost .有一些 JavaScript 库可以在浏览器中实现 Web 服务器,例如nohost It's based on the filer JavaScript library, so it can handle file requests.它基于filer JavaScript 库,因此可以处理文件请求。

It might be possible to run a Linux server in a browser using an x86 emulator in JavaScript , though I have not yet seen a demonstration of this.使用JavaScript 中x86 模拟器在浏览器中运行 Linux 服务器是可能的,尽管我还没有看到这方面的演示。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 是否使用jquery /与跨浏览器兼容的iframe调整大小(IE,Chrome,Safari,Firefox) - jquery or not / Cross Browser Compatible iframe resize (IE, Chrome, Safari, Firefox) 编码浏览器扩展,插件,Firefox,Safari,Chrome等……这可能吗? - Coding browser extensions, Addons, Firefox, Safari, Chrome etc… Is this possible? Wicket Ajax 在 Firefox 和 IE 中有效,但在 Chrome 和 Safari 中无效 - Wicket Ajax works in Firefox and IE but not Chrome and Safari 代码可在Safari,Firefox和Chrome中运行,但不能在IE(对齐)中运行 - Code working in Safari, Firefox, and Chrome, but not in IE (Alignment) Ajax提交可在Chrome / Safari中运行,但不能在Firefox / IE中运行 - Ajax submit works in Chrome/Safari but not Firefox/IE 为什么在Firefox,Chrome或Safari上却不能在IE上运行呢? - Why is this not working on Firefox, Chrome or Safari but on IE? JS可以在IE,Safari,Chrome中运行,但不能在Firefox中运行? - JS works in IE, Safari, Chrome but not in Firefox? jQuery适用于Chrome和Safari,但不能适用于Firefox或IE? - jQuery working in Chrome and Safari, but not Firefox or IE? JavaScript可在Chrome,IE和Safari中使用,但在Firefox中无法 - JavaScript works in Chrome, IE and Safari but not in Firefox Javascript文字在IE中转义,但在Firefox,Chrome或Safari中未转义 - Javascript literal escaped in IE but not Firefox, Chrome or Safari
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM