Problems starting server: Blank 'Waiting for incoming connections on ip'

Discussion about DroidMote Server for Linux
droidmotemike
Posts: 5
Joined: Wed Dec 21, 2016 2:48 am

Problems starting server: Blank 'Waiting for incoming connections on ip'

Post by droidmotemike »

I'm running Raspbian Jessie on a RPi3.

To open up the port 2302, I have added the following line to /etc/services

Code: Select all

droidmote       2302/udp                        
droidmote       2302/tcp


I rebooted my machine and then executed

Code: Select all

$ /usr/local/bin/droidmote 2302 password
 Waiting for incoming connections on ip:
when I believe I should get

Code: Select all

        Waiting for incoming connections on ip:
        192.128.1.64 2303
Can someone help me diagnose what's going on here?
User avatar
zulu99
Site Admin
Posts: 2485
Joined: Tue Oct 09, 2012 6:42 am

Re: Problems starting server: Blank 'Waiting for incoming connections on ip'

Post by zulu99 »

You need root to start the server.

The UDP port is 2303 the TCP port 2302

Mainly the UDP port is TCP + 1

Test also manually, if manually work, you can also follow the instructions in the readme to start on boot.
Developer of DroidMote Server and DroidMote Client. Read the Quick Start Guides and then I'll be happy to help.
Donate with Paypal or Donate with Crypto
droidmotemike
Posts: 5
Joined: Wed Dec 21, 2016 2:48 am

Re: Problems starting server: Blank 'Waiting for incoming connections on ip'

Post by droidmotemike »

Hmmm. Thanks for the help, but alas I am still not getting this to work

At this point I have modified /etc/services to include the lines

Code: Select all

droidmote       2302/tcp            
droidmote       2303/udp 
I've rebooted and I issue

Code: Select all

$ sudo droidmote 2302 password
but I still don't get an ip address or port in response to the above command. I have a fixed IP for the device (102.128.1.64) which it gets using DHCP with my router. I have no problem sshing into the machine using that address.

Do you have any other suggestions?
User avatar
zulu99
Site Admin
Posts: 2485
Joined: Tue Oct 09, 2012 6:42 am

Re: Problems starting server: Blank 'Waiting for incoming connections on ip'

Post by zulu99 »

what server version you are using from this page ?

https://www.videomap.it/download.htm

You should use the DroidMote Server for Linux aarch64 version 3.0.0 because you are using an arm64 device.

Why you add the two lines to /etc/services ?

you can execute only :
sudo droidmote 2302 password
Developer of DroidMote Server and DroidMote Client. Read the Quick Start Guides and then I'll be happy to help.
Donate with Paypal or Donate with Crypto
droidmotemike
Posts: 5
Joined: Wed Dec 21, 2016 2:48 am

Re: Problems starting server: Blank 'Waiting for incoming connections on ip'

Post by droidmotemike »

Thank you for your attention to this matter. In regards to your questions

a) I was using armhf but have switched to aarch64.
b) I added the lines to /etc/server because the instructions said I should 'Disable the firewall on port 2302' and I thought I was doing that. I have commented the lines I added out.
c) Using the aarch64 binary I get the following errors.

Code: Select all

[raspberrypi ~/Software/Droidmote]$ sudo droidmote 2302 password
/usr/local/bin/droidmote: 1: /usr/local/bin/droidmote: Syntax error: word unexpected (expecting ")")
and if I switch to superuser,

Code: Select all

[raspberrypi ~/Software/Droidmote]$ sudo su
root@raspberrypi:/home/pi/Software/Droidmote# droidmote 2302 password
bash: /usr/local/bin/droidmote: cannot execute binary file: Exec format error
Any idea what's going on (wrong) here?
droidmotemike
Posts: 5
Joined: Wed Dec 21, 2016 2:48 am

Re: Problems starting server: Blank 'Waiting for incoming connections on ip'

Post by droidmotemike »

Well, one problem is that the RPi 3 arch is actually 32 bit

Code: Select all

[raspberrypi ~]$ uname -a
Linux raspberrypi 4.4.32v7-aufs #1 SMP Fri Nov 18 23:17:35 CET 2016 armv7l GNU/Linux
and according to https://www.debian.org/ports/arm/

Code: Select all

The newer ARM hard-float (armhf) port supports newer, more powerful 32-bit devices using version 7 of the ARM architecture specification.
So it seems the armhf was the right version to use.

However, I get the same blank 'waiting for incoming connections on ip' as before regardless of whether I comment the lines out or not in /etc/services
User avatar
zulu99
Site Admin
Posts: 2485
Joined: Tue Oct 09, 2012 6:42 am

Re: Problems starting server: Blank 'Waiting for incoming connections on ip'

Post by zulu99 »

droidmotemike wrote:Well, one problem is that the RPi 3 arch is actually 32 bit

Code: Select all

[raspberrypi ~]$ uname -a
Linux raspberrypi 4.4.32v7-aufs #1 SMP Fri Nov 18 23:17:35 CET 2016 armv7l GNU/Linux
and according to https://www.debian.org/ports/arm/

Code: Select all

The newer ARM hard-float (armhf) port supports newer, more powerful 32-bit devices using version 7 of the ARM architecture specification.
So it seems the armhf was the right version to use.

However, I get the same blank 'waiting for incoming connections on ip' as before regardless of whether I comment the lines out or not in /etc/services
You are right, if your build is 32 bit, you need the armhf.

In this days i'm very busy with the updates of Android versions, in the next days, i will test the server on the Raspberry Pi 3 Raspbian Jessie
Developer of DroidMote Server and DroidMote Client. Read the Quick Start Guides and then I'll be happy to help.
Donate with Paypal or Donate with Crypto
droidmotemike
Posts: 5
Joined: Wed Dec 21, 2016 2:48 am

Re: Problems starting server: Blank 'Waiting for incoming connections on ip'

Post by droidmotemike »

I understand the importance of focusing on the Android versions. I appreciate your attention to this issue when you have the time.
User avatar
zulu99
Site Admin
Posts: 2485
Joined: Tue Oct 09, 2012 6:42 am

Re: Problems starting ser the norver: Blank 'Waiting for incoming connections on ip'

Post by zulu99 »

Tested the normal arm version on

RASPBIAN JESSIE WITH PIXEL
Image with PIXEL desktop based on Debian Jessie
Version:March 2017
Release date:2017-03-02
Kernel version:4.4

it work without problems.


So, not armhf and neither aarch64 but just arm
Developer of DroidMote Server and DroidMote Client. Read the Quick Start Guides and then I'll be happy to help.
Donate with Paypal or Donate with Crypto