Solving API IP Address Issues:
If you see the error:
Update your bricklink.com API settings to allow: IP Address: xxx.xxx.xxx.xxx
See below:
This is caused by Bricklink's IP address security feature.
Follow this link: https://www.bricklink.com/v2/api/register_consumer.page
Add a new key with either two options:
Option 1
*Recommended*
Allow all IP Addresses
Preferred for access everywhere.
Enter IP Address: 0.0.0.0 and IP Mask: 0.0.0.0
Update the API keys in the settings page.
Note: This is less secure, it will anyone with your API credentials to access your bricklink data from anywhere in the world.
So not share the your API keys or tokens with anyone. I have taken every reasonable precaution to keep your keys safe. They are encrypted and only stored on your device using either Android's Keystore system or Apple's keychain services.
Expo Secure Storage Documentation: https://docs.expo.dev/versions/latest/sdk/securestore/
Option 2:
More Secure
Allow specific IP address
Better Security but limits access.
Enter your phone's IP address, this is the xxx.xxx.xxx.xxx that is shows in the error message.
Update the API keys in the settings page.
Note: This is more secure, but if you are using your phone on your home's wifi, you will be blocked from accessing bricklink when you are away from home.
API Registration
Registration page should look like this. Copy your Consumer Keys and Access Token keys into the App Settings.