Overview
Markdown-OS runs a local web server to provide the editor interface. You can customize the host interface and port number using command-line options.Basic Usage
Host Options
Localhost (Default)
Network Binding
Port Configuration
Auto-Increment Behavior
The--port option specifies the preferred starting port. If that port is already in use, Markdown-OS automatically increments to find the next available port.
- Tests if port 8000 is available
- If occupied, tries 8001, 8002, 8003…
- Continues up to port 65535
- Displays the actual port in the console output
Always check the console output to see which port was actually selected:
Valid Port Range
Ports must be between 1 and 65535. Using an invalid port number will result in an error:Port Availability Check
Markdown-OS uses socket binding tests to determine port availability. The check:- Attempts to bind a TCP socket with
SO_REUSEADDRoption - Tests the specific host/port combination
- Returns the first available port in the range
Cloud and Remote Development
Cloud VMs (Cursor Cloud, GitHub Codespaces, etc.)
When running Markdown-OS in a cloud VM or remote development environment, you need to bind to0.0.0.0 to allow browser access:
The CLI attempts to auto-open a browser. In cloud VMs, you may see harmless dbus errors in the logs. The server will still work correctly - just manually navigate to the URL shown in the console output.
Port Forwarding
If your cloud environment requires specific port forwarding rules, use the--port option to specify the forwarded port:
Common Patterns
Local development on default settings
Local development on default settings
Running multiple instances simultaneously
Running multiple instances simultaneously
Use different ports for each instance:
If you don’t specify different ports, auto-increment will handle it automatically, but explicit ports make it easier to remember which project is on which port.
Cloud VM with specific port requirements
Cloud VM with specific port requirements
Testing network access
Testing network access
To test that your server is accessible:
See Also
- Troubleshooting - Common port and network issues
- Quick Start - Basic Markdown-OS usage