How do I make localhost: 3000 available globally with my IP address?
The key is to run it on the network adapter, which may already be running. Next, you need to set up port forwarding on your ADSL or cable modem if you are behind the same (or similar NAT device). Finally, ask a friend to try and contact you.
You might want to use DNS for your IP address aliases, so people don't have to enter them manually.
source to share
If you need "localhost: 3000" then go to @Joe's answer, but if you don't need the url you can use https://ngrok.com/ .
Just download it, then run it ngrok localhost:3000
in terminal.
source to share
If you have a static IP, you need to disable your firewall and you should be able to access your machine. (Disabling the firewall isn't really a good idea, but that's a different matter.)
If you have a dynamic IP address (you probably do this if you are not sure), you need to think about something called "Dynamic DNS" as this will allow our computer to have a permanent name even if the IP address changes. Please note that with all the technologies that are playing these days, your local IP address is usually not the one you see publicly. This can be a little confusing if you don't know what's going on.
All that said, most people prefer external hosting of some sort. This is much better in terms of security. Have a look at heroku for the rails host. Their free option may be exactly what you need.
source to share