![]() Default is 80, and the valid range is inclusive. You can leave one empty and nothing should break. Typically one these will just point to “ node.exe” if you have an x86 and an 圆4 version of node.js installed, the batch script will choose the most appropriate version for your operating system: 圆4 for a 64-bit system, and fallback to x86 for a 32-bit system. They can be changed if desired or required. The following are the basic editable settings that appear in run.bat. If you're using another operating system, reading the contents of run.bat and porting it to a different shell language should be fairly simple. Pick any address not labeled “external” to use for connecting. Network addresses will be listed on lan.js startup. – using the IPv6 loopback (same-computer access only).– using the IPv4 loopback (same-computer access only).– the generic loopback address (same-computer access only).– an IPv6 local network address sometimes looks like this.– an IPv4 local network address sometimes looks like this.To access the server while it is running, go to one of the following urls: assuming the server is using port 80 To close: close the command window, or CTRL+C inside of it if you like To start the server: double-click run.bat You can place files inside the included “files” folder and they will be easily served. If you're using Windows, select the “Package” download above and unzip it to a folder. run.bat – a simple execution batch script which runs the server when double clicked.lan.js – the main server script which runs under node.js.Package – zip file containing node.exe executables, lan.js, run.bat, and a files folder.node.js – runs the server application get a binary executable for your operating system.It's also useful for testing webpages which may be required to not be a file: URI to work. A directory is specified to the application, and it will serves the files in the directory over HTTP. Lan.js is simple a Javascript file which runs under node.js which runs a local server that's accessible through private network and loopback IPs.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |