Hotspots and Localhost tunneling with Nodejs

Am currently on a NodeJs project where I have the responsibility of creating a hotspot on a computer and allow users connected to it be able to access localhost.

Is it possible to implement this with NodeJs? And what are the security issues am to consider?

PS: if you know of a library or implementation of this kind of thing, please state it. Even if in C/C++.

thanks!!!