# HostService Settings

Run the appRules.HostService executable (located in the \[Install Folder]\appStrategy folder) and it will immediately serve the appRules application to port 8080 by default.

A sample cmd file to install and uninstall the host service is available in the appRulesPortal\Startup\Services Installation folder)

Note: You may get an “Access Denied” error if you are not running on a Windows Server and don’t have Administrator privileges because Windows blocks attempts at listening to all domains (\*). In which case add “-d:localhost” to accept local connections, or run as administrator.

COMMAND LINE ARGUMENTS

| Argument                                  | Description                                                                                                           |
| ----------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
|                                           |                                                                                                                       |
| (none) or -start                          | Starts the host process for appRules Portal                                                                           |
| -stop                                     | Stops the process for appRules Portal.                                                                                |
| -p:{port} or -port:{port}                 | Changes the port. The default port is 8080.                                                                           |
| -d:{domain name} or -domain:{domain name} | Limits the domain: i.e. \* = all, or localhost to accept local connections only. The default is \*.                   |
| -i or -install                            | Installs appRules.HostService as a Windows service appRules Portal   You can mix “-i” with “-p:” and “-n:” and “-d:”. |
| -u or -uninstall                          | Uninstalls appRules.HostService from the Windows services.                                                            |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.appstrategy.com/apprules-r-documentation/platform/self-hosting/software-installation/hostservice.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
