You can find a method in the Tools class to obtain REMOTE_ADDR