This script will print out your local IP and copy it to clipboard. When serving/developing a web-project with Nuxt for example, You can then paste this url into your phone and test it on the device.
The url that gets printed/copied looks like so: http://192.168.0.1:3000
The easyest thing to do is to create a file in /usr/bin
(you might need sudo permissions)
Then make it executable with chmod +x YOUR_FILE_NAME.sh
(you might need sudo permissions)
All done!