> For the complete documentation index, see [llms.txt](https://docs.smart-stuff.nl/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.smart-stuff.nl/dsmr-api/instellingen/extern-toegang.md).

# Extern toegang

{% hint style="danger" %}
Met externe toegang kunt u vanaf buiten u netwerk naar de dongle. Juiste configuratie is essentieel zodat **onbevoegde GEEN toegang** kunnen krijgen tot dongle/data en eventueel uw netwerk.

Als u niet weet wat u aan het doen bent is het verstandig om eerst in te lezen via het internet wat port forwaring betekent.
{% endhint %}

Zodra de dongle gekoppeld is aan uw Wifi-netwerk kunt u via uw Wifi-netwerk de dongle altijd bereiken. Mocht u het ook prettig vinden om buiten uw wifi-netwerk (onderweg, op het werk) bij de dongle te kunnen dan is dat mogelijk.

Stel "port-forwarding" op uw router in om van buiten toegang tot uw dongle te krijgen.

### Alleen toegang voor bevoegde

Om er voor te zorgen dan onbevoegden geen toegang kunnen krijgen tot uw netwerk dient de dongle te worden afgeschermd.

Hieronder een klein stappenplannentje.

#### Instellen autorisatie

Stel in de settingspagina een gebruiker en wachtwoord in bij:

* `b_auth_user`
* `b_auth_pw`

Dit kan ook via `DSMRsettings.json` met de sectie `basic-auth`.

{% hint style="warning" %}
Let op! gebruik lange wachtwoorden! minimaal 8 karakters met enkele speciale tekens zoals # @ !.
{% endhint %}

```
"basic-auth":{"user":"gebruikersnaam","pass":"wachtwoord"}
```

Om de authenticatie uit te zetten dient bij `user` de inhoud gewist (`""`) te worden.

#### Port-forwarding in uw router

Hoe u dit dient in te stellen ia afhankelijk van de fabrikant van uw modem/router. Ingrediënten om dit in te stellen zijn:

* ip-adres van de dongle = stel dat dit 192.168.2.3 is
* poortnummer van de dongle = 80
* ip v4 adres van uw thuisnetwerk. Te zien via bv : <https://www.whatismyip.com/>
* poortnummer om de dongle te bereiken. dit is een keuze bijvoorbeeld poort 8888

In uw router geeft u dan aan dat poort 80 van de dongle (192.168.2.3) gekoppeld dient te worden aan poort 8888 van uw thuisnetwerk.

Als u dan via uw browser op de smartphone (4G aan / Wifi uit) http//:\<ip-thuis>:8888 intypt zou u na goede configuratie bij de dongle dienen uit te komen.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.smart-stuff.nl/dsmr-api/instellingen/extern-toegang.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.
