# Installation Legoserver

## På legoleverantörens server

1. Packa upp installationspaketet från Simutek till mappen `c:\gks3` .\
   Paketet innehåller två filer, *LegoServer.exe* och *Legoservice.ini* .
2. Öppna filen *LegoService.ini*. Kontrollera att det står port 8080.\
   Finns inte filen? Skapa en fil som ser ut [såhär](#konfigurationsfil).
3. Öppna en kommandoprompt med administrativa rättigheter. Kör:\
   `LegoServer.exe -install`<br>

   ![](/files/-MRtBWdHZSJwOggO3kNV)<br>
4. Öppna *Tjänster/Services*. Starta tjänsten *GKS Legoservice*.
5. Öppna *Loggboken/Event viewer*.\
   Kontroller att tjänsten startat och att inga fel rapporterats.
6. Öppna en webbläsare mot `http://localhost:8080` .\
   Servern svarar med texten: *Web Server Application*
7. Öppna port 8080 i brandväggen.
8. Öppna en webbläsare utanför nätverket mot `http://ert-externa-ip-nummer:8080`.\
   Servern ska vara med samma text.

![Tjänsten GKS Legoservice har startats efter Steg 4.](/files/-MRtC7IJ1R3CfJdsf8xy)

![Inga felmeddelanden rapporterade i loggboken efter Steg 5.](/files/-MRtCK2l6m7O_gmphg5n)

### Konfigurationsfil

Filen *Legoservice.INI* ska se ut såhär:

{% code title="Legoservice.INI" %}

```
[LEGOSERVICE]
PORT=8080
```

{% endcode %}


---

# 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.simutek.se/it/install/installation-legoserver.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.
