clementine-player / Android-Remote

Control Clementine from your Android device
GNU General Public License v3.0
198 stars 80 forks source link

Can't connect to the server #218

Open stemy2 opened 3 years ago

stemy2 commented 3 years ago

Hello,

My 2 devices are on the same network, the IP address entered and the ports are correct and remote control is activated in the server app, but the client app is still unable to connect to it, and i don't understand why.

luciph0r commented 3 years ago

Ah, the joy of open source projects where your cry for help remains totally ignored because the developer has abandoned the project or is just not bothered. Fun part is I found a similar complaint from 2013. Exactly the same situation and problem, Clementine 1.4 rc on Mint 20.4, no firewall on PC, both devices on same network, using the correct internal IP and port, can ping the PC from the phone and vice versa.

Jomme5 commented 1 year ago

"Temporary" solution for windows-users(linux see .6):

  1. Download Socat for windows: https://sourceforge.net/projects/unix-utils/files/socat/1.7.3.2/
  2. Download quiet.exe from Joeware(search it)
  3. Extract all above in program files (x86)\clementine
  4. Make bat-file with the name start-clementine.bat in above clementine directory with this:
@echo off
quiet "clementine.exe"
:g
socat TCP4-LISTEN:5500 TCP6:localhost:5500
if %ERRORLEVEL% EQU 1 (goto s)
tasklist /FI "IMAGENAME eq clementine.exe" /FO "TABLE" /NH | findstr /c:"clementine.exe"
if %ERRORLEVEL% EQU 0 (goto g)
:s
  1. make a shortcut to start-clementine.bat in the start menu or make sure you always start clementine from the bat-file (if you want to use remote)
  2. If you use linux; just try this before starting clementine: socat TCP4-LISTEN:5500 TCP6:localhost:5500
  3. Edit: if you're sick of all this, try a decent made program; foobar2000 - you'll love it.