I have a start script:
"start": "meteor run --port 22.214.171.124:3000 --settings settings-local.json",
I like using the IP instead of localhost, then I can connect my iphone and debug webapps by mobile, or I can have my expo react-native app hit the local version of the server code.
But every time I switch locations (home/office) I have to remember to go in my script and change out the hard coded address (it changes depending on whos wifi you’re on). Is there a variable or something that I can plug into my start script so it just grabs whatever the IP is?
It’s not the end of the world but it’s one of those things where you’re like “there has to be a better way”
I know you can get the IP in the code, but I need it in the start script.