Because Swiftor runs your VMs in Docker containers, networking works differently than on your local computer. Let's understand how:
On your computer:
localhost
means your computerIn Swiftor:
When you create a subdomain mapping in Swiftor:
myapp-vmid.swiftor.io
→ Container:5001
Default Port
All subdomains are served on port 80 (HTTP) and 443 (HTTPS) externally.
Access the network manager through the workspace:
Components:
Example Mapping:
Subdomain: myapp
Internal Port: 5001
VM: 228782df-e228-4b7a-b341-d267724c745e
Result URL: myapp-228782df-e228-4b7a-b341-d267724c745e.swiftor.io
Your existing mappings appear in a table showing:
Column | Description |
---|---|
Subdomain | Your chosen name |
Internal Port | Port inside VM |
VM | Target virtual machine |
Preview URL | Full access URL |
Hot Restart
Changes require a hot restart of the networking service to take effect.
Subdomain: webapp
Internal Port: 3000
Use Case: React/Node.js apps
Subdomain: api
Internal Port: 8080
Use Case: Backend services
Subdomain: db
Internal Port: 8081
Use Case: phpMyAdmin
Security Warning
Common issues and solutions:
Issue | Solution |
---|---|
Port in use | Check running services |
Can't access | Verify VM is running |
SSL errors | Wait for cert provision |