# About local server

stable-diffusion-for-unity automatically installs a system which forks from AUTOMATIC1111/stable-diffusion-webui and communicates with Unity via API.

This WebUI is lcated in the main drive of the PC, C:\Users\\\[User Name]\Witchpot\\

When StartServer button is pushed on Unity Editor, Command Prompt is automatically launched.

The server can be started from the Witchpot > StartServer button in the menu, or from the StartServer button in \~2Img component(this button only visible when the server is not running)

<div><figure><img src="/files/yK8o4hWis9MEASvb2naY" alt=""><figcaption></figcaption></figure> <figure><img src="/files/Tp6353nxCXZ4GsMJ2EEp" alt=""><figcaption></figcaption></figure></div>

Server availablility can be monitored from the command prompt.

<figure><img src="/files/8ojHwrZO3Gxqcozvi8rr" alt=""><figcaption></figcaption></figure>

Initial startup may take time.

`Running on local URL:   http://127.0.0.1:7860`

If you see a URL like this, installation and setup have been successfully completed.&#x20;

You will see a progress bar on command promt when generating images on Unity

If the image generation does not work, please also check the notation in the command prompt.


---

# 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.witchpot.com/english/production-tips/about-local-server.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.
