what ip address should i used to generate api key on localhost
From the API documentation: https://docs.osticket.com/en/latest/Developer%20Documentation/API%20Docs.html#authentication
"API keys are created and tied to a source IP address"...