1

I want to create a Nodejs server on my laptop using my ISP. I have a broadband connection and router. I have WSL Ubuntu installed on Windows 10.

I don't need to do anything commercially or for business purpose. I just want to test it.

Basically, I need to access this server from any other network using my public IP.

Now I paid attention to this - Windows 10 Wi Fi settings:

enter image description here

So now I want to know if I set it as Private, would it work as desired? Or I must make it Public so someone can access it using my network's public IP?

PS: I know I also have to do port forwarding, firewall settings. But first I want to figure out this Public and Private profile. I'm not sure which one do I need to use for this purpose.

7
  • Where are you seeing those options? Is that on your router, part of Ubuntu, or part of the web server? Apr 24 at 9:28
  • @StephenOstermiller It's a network setting built into Windows Apr 24 at 9:31
  • 3
    This setting does not impact TCP/IP access to your computer, it's for Windows discoverability and file & printer sharing network protocols (i.e., connecting to a shared folder/drive or printer from another Windows computer). Running a web server will not be affected by this setting, so selecting "Private" is just fine. The only consideration is making sure the port(s) for your web server (e.g., Node.js) are open in your firewall and that those ports are forwarded by your router to your computer's internal/private IP address, as you indicated you were already aware of.
    – dan
    Apr 24 at 13:33
  • 1
    @dan Thanks. You may want to add it as an answer?
    – Vikas
    Apr 25 at 3:18
  • 2
    No problem. Feel free to add it as an answer and then accept it when you can - that will help to build some reputation for yourself here.
    – dan
    Apr 25 at 13:58

1 Answer 1

3

I could not find any other resource about it but I found answer in the comments of my question. I would like to post it as an answer below:

This setting does not impact TCP/IP access to your computer, it's for Windows discoverability and file & printer sharing network protocols (i.e., connecting to a shared folder/drive or printer from another Windows computer). Running a web server will not be affected by this setting, so selecting "Private" is just fine. The only consideration is making sure the port(s) for your web server (e.g., Node.js) are open in your firewall and that those ports are forwarded by your router to your computer's internal/private IP address, as you indicated you were already aware of.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.