The question should have been WHEN DO I USE 127.0.0.1 on Both the CLIENT AND THE HOST?

That answer would be when both are running on the SAME MACHINE. You can run client and server on the same machine.