You often see example hello world code for Node that creates an Http Server, starts listening on a port, then followed by something along the lines of:  console.log('Server is listening on port 8000');   But ideally you'd want this instea...
When running console.log("Express server listening on port " + port); in node.js on a deployed Azure website, I get the following string  Express server listening on port \\.\pipe\d9797e42-9e1f-421c-91b9-3d86496eaeb8   What is this and how ca...
This is my first time working with Node.js and I ran into this problem:  I have started a Node server through the plugin of an IDE. Unfortunately, I cannot use the IDE's terminal. So I tried to run the script from the command line.  This is the p...
can anyone tell me how to get host IP and port number on which the web application is running using javascript (e.g. 127.0.0.1:8080)...
const http  = require("http");  function createServer(   name,   hostname ) {   const server = http.createServer(     (       request,       response     ) =>     {       console.log("request on", name);       response.end(name);...
I use the following API in my program to detrmine free port and provide it to application to run  portscanner.findAPortNotInUse(3000, 65000, '127.0.0.1', function(error, port) {   console.log('AVAILABLE PORT AT: ' + port) })   https:/...
I recently got a new printer (specifically a HP Photosmart C6380 if that helps) that allows me to send text to port 9100 to print.  Telnetting into it and typing text to print works fine, but I'm wondering if I could make a webpage using HTML and...
I have a Java websocket that keeps sending a bunch of coordinates which I want to CONSTANTLY intercept from a js client. Here is a simplified version of the java code:  public static void main(String args[]) throws IOException {     final int portNum...
I'd like to output a message like "Listening on port {port_#}" to the terminal from my node js server.  I found documentation, such as this, NodeJS: How to get the server's port?, but they only talk about Express JS.   I'm using t...
Hope someone can help.  I need to return some data from a RESTful API service that is hosted on a non standard port 9091. I am using the following as a test harness:  var options = {     'method' : 'GET'   };    var result = UrlFetchA...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.