-Reverted a dumb mistake
-Changed the static loopback IP to a function that gathers the local IP