First Launch Setup
When you first open the Anchor mobile app, you’ll be greeted with the server configuration screen.Enter Server URL
The app will prompt you for your Server URL. This is the address where your Anchor server is running.Enter your server URL in one of these formats:
https://anchor.yourdomain.com(production deployment)http://your-server-ip:3000(local network)http://10.0.2.2:3000(Android emulator connecting to localhost)http://localhost:3000(iOS simulator)
Test Connection
Before connecting, tap the Test button to verify your server is reachable.The app will:
- Connect to your server’s health endpoint (
/api/health) - Verify it’s a valid Anchor server
- Display the server version if successful
If the test fails, double-check your URL and ensure your server is running and accessible from your device.
Server URL Requirements
Your server URL must meet these requirements:Production Deployments
For production use with HTTPS:- Must use HTTPS for security
- Requires a valid SSL certificate
- Accessible from the public internet
- No port number needed (defaults to 443)
Local Network Access
For accessing a server on your local network:- Find your server’s local IP address
- Include the port number (default: 3000)
- Both devices must be on the same network
- HTTP is acceptable for local development
Android Emulator
If running the server on your development machine:10.0.2.2is a special alias to your host machine’s localhost- This only works in Android emulators, not physical devices
iOS Simulator
If running on iOS simulator:- iOS simulators can directly access the host machine’s localhost
- This only works in simulators, not physical devices
Connection Validation
The app validates your server by checking the/api/health endpoint:
Changing Server URL
If you need to connect to a different server:Change Server
- Scroll to the Server section
- Tap Server URL to see your current server
- Tap Change Server to enter a new URL
Troubleshooting
Connection Timeout
Error: “Connection timed out. Check the URL and try again.” Solutions:- Verify the server is running:
curl http://your-server:3000/api/health - Check your network connection
- Ensure your firewall allows connections on the server port
- For local servers, verify your device is on the same network
Could Not Connect to Server
Error: “Could not connect to server. Check the URL.” Solutions:- Verify the URL format is correct (starts with
http://orhttps://) - Check for typos in the domain or IP address
- Ensure the port number is correct
- Try accessing the URL in your device’s web browser first
Invalid Server Response
Error: “Invalid server response. Is this an Anchor server?” Solutions:- Ensure you’re connecting to an Anchor server, not a different application
- Verify the server is fully started and healthy
- Check server logs for errors
- Ensure the
/api/healthendpoint is accessible
SSL Certificate Errors
If using HTTPS with a self-signed certificate: For development, use HTTP on a local network instead.Network Requirements
Ports
Ensure these ports are accessible:- 3000: Default Anchor server port (HTTP)
- 443: HTTPS (if using SSL)
Firewall Configuration
If your server has a firewall:Router Configuration
For remote access, configure port forwarding:- Forward external port 443 to internal port 3000 (or your server’s port)
- Use a dynamic DNS service if you don’t have a static IP
- Ensure your ISP allows incoming connections
For security, always use HTTPS when accessing your server over the internet.
Authentication
After connecting to your server, you’ll need to authenticate:Standard Login
- Enter your email address
- Enter your password
- Tap Sign In
OIDC Authentication
If your server has OpenID Connect configured:- Tap Sign in with SSO
- You’ll be redirected to your identity provider
- Complete authentication in the browser
- You’ll be redirected back to the app
Registration
If registration is enabled on your server:- Tap Create Account on the login screen
- Enter your name, email, and password
- Tap Sign Up
Next Steps
Once connected and authenticated, learn about the app’s offline capabilities:Offline Usage
Create and edit notes without an internet connection