Files
kb-anhonesthost/src/content/partials/service-hostnames.mdx
T

12 lines
1.3 KiB
Plaintext
Raw Normal View History

Some applications need to connect to databases, caches, or other internal services. Use these hostnames from inside your site — they only resolve within your hosting container, so they don't work from your laptop.
| Service | Hostname | Default port | Notes |
| ---------------------- | ----------------------- | ------------ | ------------------------------------------------------ |
| MySQL | `mysql` | 3306 | Username, password, and database from your WHP panel. |
| PostgreSQL | `postgres` | 5432 | Available on most plans; ask support if it's missing. |
| Memcached | `memcache` | 11211 | No auth; isolated per container. |
| Redis | `redis` | 6379 | Single DB per site; password in panel. |
| SMTP (outbound) | `smtp.anhonesthost.com` | 587 | Use your full email address as the username. |
**Connecting from your laptop?** Use the panel's **phpMyAdmin** (MySQL) or **Adminer** (PostgreSQL) for ad-hoc queries — direct external connections to these internal services are not exposed for security reasons.