YOur LAN IP address is not normally something you control - it's allocated by the DHCP (Dynamic Host Configuration Program) which normally is part of your router or similar equipment. It may be that you can set it to assign a fixed IP address to your specific machine, but even if you can, the procedure will be different for each DCHP make and model.
But ... IP address 127.0.0.1 is a "special case" - it's the
loopback address[
^] which normally resolves from "localhost" to mena "this machine".
I think you need to rethink what you are doing here - another machine will not resolve 127.0.0.1 to anything other than itself, and unless 192.168.2.2 is set as a static IP in your DCHP you will probably lose that the next time the computer is rebooted. You should almost certainly be using host names, rather than IP addresses!