Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9190811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T20:32:45+00:00 2026-06-17T20:32:45+00:00

I built a Node.js web server on my computer, using the so-well-known-http-web-server-example of Node.js:

  • 0

I built a Node.js web server on my computer, using the so-well-known-http-web-server-example of Node.js:

var http = require('http');

http.createServer(function(req, res){
    res.writeHead(200, {'content-type': 'text/plain'});
    res.end('It works');
}).listen(3000, '127.0.0.1');

This works (as expected) on the computer that runs the server.

I would like to access the server from another computer, in the same LAN. Using ifconfig on the terminal of the computer that runs the server (Apple MacOSX), I get: 192.168.0.6.

So, in my other computer, I opened my browser and connected to http://192.168.0.6:3000, but I get:

Oops! Google Chrome could not connect to 192.168.0.6:3000

My final aim, is to be able to connect to the server using my smartphone.

Any help would be welcome. Don’t hesitate to ask for more details if necessary.

Thanks in advance 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T20:32:47+00:00Added an answer on June 17, 2026 at 8:32 pm

    127.0.0.1 is only local interface. Try to start listening all interfaces:

    var http = require('http');
    
    http.createServer(function(req, res){
        res.writeHead(200, {'content-type': 'text/plain'});
        res.end('It works');
    }).listen(3000, '0.0.0.0');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to build a RESTful internal web server at work using node.js, where
I'm trying to build a web server in node.js that will support cross-domain scripting,
I want to use the built-in web server for VS 2008 and have it
I am working with Node.js to build a web socket server that uses mongodb.
We have an web application build using node js (express js), which is behind
When I discovered that Node.js was built using the V8 JavaScript engine , I
I currently have a web app that is built using Play framework (1.2.4) with
I've just started using node, I want to build a single page web app
Okay, first off, I am build a web app using AngularJS and node.js. I
I'm trying to build a simple web application using Node.js and CouchDb. The application

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.