# Cannot "cast" to Plexamp Headless to control remotely

**URL:** <https://forums.plex.tv/t/cannot-cast-to-plexamp-headless-to-control-remotely/853520>\
**Category:** Plex Labs\
**Tags:** plexamp\
**Created:** [September 14, 2023, 1:32pm UTC](https://forums.plex.tv/t/cannot-cast-to-plexamp-headless-to-control-remotely/853520 "2023-09-14T13:32:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![joe4therecord](https://avatars.discourse-cdn.com/v4/letter/j/e9bcb4/32.png) [@joe4therecord](https://forums.plex.tv/u/joe4therecord)\
**Post date:** [September 14, 2023, 1:32pm UTC](https://forums.plex.tv/t/cannot-cast-to-plexamp-headless-to-control-remotely/853520/1 "2023-09-14T13:32:16Z")

</div>

Hi! I installed Plexamp Headless on WSL2/WSLg on Windows 10. I know this isn’t the use case this app was designed for but it works great! That is, as long as I control it through the web browser. For some reason I cannot get it “casting” for remote control working with my Android phone. I am on version 4.8.3 of the app on my phone and 4.8.3 for Plexamp Headless.

When I attempt to “cast” from my phone to Plexamp Headless, I get a message displayed on my phone which says “Cannot Connect To Remote Player”. Strangely when I hit the cast icon and see my list of available players, I can see Plexamp Headless and I can see what song is playing. I can even hit the dropdown there and use the basic forward, backward, play, and pause.

This appears to be the relevant logs but I don’t know if it’s detailed enough to see what’s going on. My Plexamp Headless instance is called “Desk”:

Sep 14, 2023 22:15:40.926 [0xbdf3ccb0] DEBUG - Networking: Completed request 37: (GET [http://100.115.92.14:41577/resources](http://100.115.92.14:41577/resources)) with code -28 (have 0 bytes) in 5001 ms.  
Sep 14, 2023 22:15:40.928 [Javascript] WARNING - DEVICE: Player connection [http://100.115.92.14:41577](http://100.115.92.14:41577) didn’t work for Android: HTTP status -28  
Sep 14, 2023 22:15:40.928 [0xbdf3ccb0] DEBUG - Networking: Completed request 38: (GET [http://100.115.92.2:41577/resources](http://100.115.92.2:41577/resources)) with code -28 (have 0 bytes) in 5004 ms.  
Sep 14, 2023 22:15:40.928 [0xbdf3ccb0] DEBUG - Networking: Completed request 39: (GET [http://192.168.169.83:32500/resources](http://192.168.169.83:32500/resources)) with code -28 (have 0 bytes) in 5003 ms.  
Sep 14, 2023 22:15:40.930 [Javascript] WARNING - DEVICE: Player connection [http://100.115.92.2:41577](http://100.115.92.2:41577) didn’t work for Android: HTTP status -28  
Sep 14, 2023 22:15:40.930 [Javascript] WARNING - DEVICE: Connection testing failed for Android  
Sep 14, 2023 22:15:40.930 [0xbdf3ccb0] DEBUG - Networking: Completed request 40: (GET [http://192.168.56.1:32500/resources](http://192.168.56.1:32500/resources)) with code -28 (have 0 bytes) in 5003 ms.  
Sep 14, 2023 22:15:40.930 [Javascript] WARNING - DEVICE: Player connection [http://192.168.169.83:32500](http://192.168.169.83:32500) didn’t work for Desk: HTTP status -28  
Sep 14, 2023 22:15:40.930 [Javascript] WARNING - DEVICE: Connection testing failed for Desk  
Sep 14, 2023 22:15:40.931 [Javascript] WARNING - DEVICE: Player connection [http://192.168.56.1:32500](http://192.168.56.1:32500) didn’t work for WinDesktop: HTTP status -28  
Sep 14, 2023 22:15:40.931 [Javascript] WARNING - DEVICE: Connection testing failed for WinDesktop  
Sep 14, 2023 22:15:42.358 [Javascript] INFO - [Navigation] Settings \> Settings (Device) \> Settings (Debugging)

Again, I know I am not using this as designed, but I would appreciate any advice that could be provided.

---

<div class="post-metadata">

**Author:** ![elan](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/elan/32/5_2.png) [@elan](https://forums.plex.tv/u/elan)\
**Post date:** [September 15, 2023, 11:42am UTC](https://forums.plex.tv/t/cannot-cast-to-plexamp-headless-to-control-remotely/853520/2 "2023-09-15T11:42:00Z")

</div>

almost certainly a networking issue, the android phone needs to be able to connect directly to the headless Plexamp.

the next/prev shipping can go via the cloud, and the playing status doesn’t require a direct connection which is why those things work.

---

<div class="post-metadata">

**Author:** ![joe4therecord](https://avatars.discourse-cdn.com/v4/letter/j/e9bcb4/32.png) [@joe4therecord](https://forums.plex.tv/u/joe4therecord)\
**Post date:** [September 15, 2023, 11:52am UTC](https://forums.plex.tv/t/cannot-cast-to-plexamp-headless-to-control-remotely/853520/3 "2023-09-15T11:52:50Z")

</div>

OK, thank you. I’ll play around with it.

---

<div class="post-metadata">

**Author:** ![joe4therecord](https://avatars.discourse-cdn.com/v4/letter/j/e9bcb4/32.png) [@joe4therecord](https://forums.plex.tv/u/joe4therecord)\
**Post date:** [September 18, 2023, 2:31pm UTC](https://forums.plex.tv/t/cannot-cast-to-plexamp-headless-to-control-remotely/853520/4 "2023-09-18T14:31:27Z")

</div>

Thank you. I was able to get this to work by using the iptables command on my dd-wrt router to forward requests made to the WSL ip address to my window PC’s ip address instead:

iptables -t nat -A PREROUTING -d (wsl ip address) -j DNAT --to-destination (ip address of windows machine)

---

<div class="post-metadata">

**Author:** ![joe4therecord](https://avatars.discourse-cdn.com/v4/letter/j/e9bcb4/32.png) [@joe4therecord](https://forums.plex.tv/u/joe4therecord)\
**Post date:** [September 21, 2023, 1:54am UTC](https://forums.plex.tv/t/cannot-cast-to-plexamp-headless-to-control-remotely/853520/5 "2023-09-21T01:54:57Z")

</div>

For anyone discovering this thread via Google, I just saw that in this month’s WSL pre-release for September 2023 Microsoft has included something called network mirroring that sounds like it will give WSL the same IP address as the host computer which I believe will resolve this routing issue. Unfortunately I am unable to test since it currently requires Windows 11 and I am still on Windows 10.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [December 20, 2023, 1:55am UTC](https://forums.plex.tv/t/cannot-cast-to-plexamp-headless-to-control-remotely/853520/6 "2023-12-20T01:55:55Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
