This is a small express app: [login to view URL]
The app runs on 3000 port internally.. but if its on a network the external port could be different.. there will be a mapping in the NAT.. we want to get port and ip accessible from external network and print on console. So the console should print something like:
[login to view URL]:yyyyy
where [login to view URL] is the external ip address and and yyyyy is the external port. The code should work on a variety of networks: 1. direclty on internet (like a cloud server). 2. device behind a wifi router connected to internet 3. device on a network with a firewall.
Suggested libs:
1. [login to view URL]
2. [login to view URL]
These are suggested libs only.. any open source node packages can be used.