# Problem with device connection

**URL:** <https://hub.mender.io/t/problem-with-device-connection/7671>\
**Category:** General Discussions\
**Tags:** mender-client, mender-server\
**Created:** [March 27, 2025, 10:27am UTC](https://hub.mender.io/t/problem-with-device-connection/7671 "2025-03-27T10:27:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rastod101](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@rastod101](https://hub.mender.io/u/rastod101)\
**Post date:** [March 27, 2025, 10:27am UTC](https://hub.mender.io/t/problem-with-device-connection/7671/1 "2025-03-27T10:27:42Z")

</div>

Hello,  
so i have problem with my mender server. I installed mender-client on my device and i was able to connect to hosted mender. Then i tried to create my own server. It is running inside Windows WLS i followed the Evaluation with Docker Compose tutorial, and the server is running i can log into the web interface but i cannot see my device. I tired different things and nothing seems to work. I can ping between the devices so there is connectivity. This is what i ran on my device witch i am trying to connect to the server.  
DEVICE\_TYPE=“raspberrypi4”  
SERVER\_IP\_ADDR=“” - here is the server ip  
sudo mender-setup   
–device-type $DEVICE\_TYPE   
–demo-server   
–server-ip $SERVER\_IP\_ADDR   
–demo-polling

---

<div class="post-metadata">

**Author:** ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)\
**Post date:** [March 27, 2025, 10:44am UTC](https://hub.mender.io/t/problem-with-device-connection/7671/2 "2025-03-27T10:44:37Z")

</div>

Hi @rastod101,

Thanks for reaching out.  
By default, services running within WSL are not exposed to the network. See the following for approaches to solve this:

- [Accessing network applications with WSL | Microsoft Learn](https://learn.microsoft.com/en-us/windows/wsl/networking#accessing-a-wsl-2-distribution-from-your-local-area-network-lan) (port forwarding)
- [Accessing network applications with WSL | Microsoft Learn](https://learn.microsoft.com/en-us/windows/wsl/networking#mirrored-mode-networking) (mirroring)

Greetz,  
Josef

---

<div class="post-metadata">

**Author:** ![rastod101](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@rastod101](https://hub.mender.io/u/rastod101)\
**Post date:** [March 27, 2025, 12:10pm UTC](https://hub.mender.io/t/problem-with-device-connection/7671/3 "2025-03-27T12:10:24Z")

</div>

Hi, thanks for the quick reply. I have enabled this i am able to ping the WSL from the device, but i am not seeing the device in the connection list. Do i have to enable some specific port ? i have enabled 8080 and 433, but that did not help.

---

<div class="post-metadata">

**Author:** ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)\
**Post date:** [March 27, 2025, 12:44pm UTC](https://hub.mender.io/t/problem-with-device-connection/7671/4 "2025-03-27T12:44:50Z")

</div>

Hi @rastod101,

Without knowing anything about WSL, at least 433 is definitely wrong, HTTPS is 443. Beyond that, no idea. It’s definitely not a setup we test or even try. It might even be easier to pack everything into an Ubuntu VM and give it bridged networking.

Greetz,  
Josef
