Cannot see devices when running as server (windows)

Hello,

If i run the vhui64.exe as gui, then I can just fine see all devices on my hub, 10.22.4.2:7574 (using ssl)

But when I run is a service then i can only see this:

C:\Users\inpay>vhui64.exe -t "LIST"
VirtualHere IPC, below are the available devices:
(Number in brackets = address, * = Auto-Use)

(10.22.4.2:7574)

Auto-Find currently off
Auto-Use All currently off
Reverse Lookup currently off
VirtualHere is running as a service

Isn't the service using the same configuration file as the gui?

#2

No the service doesnt share the same configuration as the gui, you need to add the hub to the service via the client api

#3

Okay, guess I know what's wrong. How do I enable SSL when running as service?

#4

You can edit the file at C:\Windows\system32\config\systemprofile\AppData\Roaming\vhui.ini

(FYI The service runs without a user logged in, therefore it doesnt share any config of the gui as that is attached to a logged in user)

#5

Perfect, it solved my issue. Maybe worth adding this to the page about running it as a service on windows?

#7

Hello

I have the same issue, but on ubuntu and I have added EnableSSL=1. What could be the problem?
Thanks in advance,
Joanna.

#8

try

./vhclientx86_64 -t "MANUAL HUB ADD,<hub ip>:7574"

Then try the LIST command again and see if it shows...

#9

Hey
I have run:

./vhclienti386 -t "MANUAL HUB ADD,:7574"
./vhclienti386 -t "list"

I got: [hub ip]*

#10

you put your ip address in the <hub ip> e.g

./vhclienti386 -t "MANUAL HUB ADD,192.168.0.2:7574"

#12

There was a bug with the auto-find in the linux client where after a few minutes would not auto-find anymore. Could you update your client to 3.2.3 available on this website and try again also take a look in /var/log/syslog as that shows any messages like errors etc.

I have updated to 3.2.3 version, but it didnt help. I have also checked logs, but that gives me nothing. Should I set EnableSSL=1 or not?
Maybe I am missing some settings or correct settings?

#14

No, enable SSL is always on by default now... no need to change anything, can you do:

sudo ./vhclienti386 -l /tmp/out.txt -n

then send me whats in the /tmp/out.txt

Here is what I get
From /tmp/out.txt:

12:11:49 INFO :Log Started
12:11:49 INFO :VirtualHere Client 3.2.3 starting (Compiled: Nov 9 2015 11:52:20)
12:11:49 INFO :Using config at /home/inpay/.vhui
12:11:49 INFO :IPC available at /tmp/vhclient
12:11:49 INFO :VirtualHere client is running as a service
12:11:57 INFO :Could not connect to 10.22.4.2:7574
12:12:26 INFO :Could not connect to 10.22.4.2:7574
12:12:56 INFO :Could not connect to 10.22.4.2:7574
12:13:26 INFO :Could not connect to 10.22.4.2:7574
12:13:56 INFO :Could not connect to 10.22.4.2:7574

From ~/.vhui

[General]
AdminMode=0
AutoFind=0
ReverseLookup=0
AutoRefreshLookupPeriod=30
SSLPort=7574
SSLClientCert=
[Settings]
ManualHubs=10.22.4.2:7574
[AutoShare]
All=0
[Transport]
CompressionLimit=384
PingInterval=3
PingTimeout=10

#16

Thats a clue, it cannot access 10.22.4.2 you probably have the wrong ip in there, or that server is not running with ssl.

Try telneting to that address directly, if the server is listening on that port it will show some stuff on the telnet session

e.g

telnet 10.22.4.2 7574

I tried run this:

telnet 10.22.4.2 7574
Trying 10.22.4.2...
telnet: Unable to connect to remote host: Connection timed out

I will look into that, thank you for you help.

#18

I've followed the above recommendations and while using the USB port connected to my phone I get the following error in telnet "connection to host lost" sometimes while connected I can get a data file retrieved but mostly it times out. I was able to follow the system messages but not the system message box says - this log has been redirected to service. I've tried to use this on 2 different computers (Win7 and Win10) with 2 different software purposes and 2 different usb cables. This happens with phone to usb to usb and phone to usb to usb serial converter. My phone has plenty of reception bars in this location. I'm looking for some other tips.

#19

Hi Ross, firstly uninstall the client as a service so you can see what is going on in the log. Right click USB Hubs->Uninstall Client Service

Are you using ssl or plain TCP? Are you using a VPN or are you connecting directly?

Run the client normally , not as a service, and then try to connect using the method you use. What messages does it show in the system messages in the client?

#20

using as tcp, no vpn. uninstalled as client on both computers. pc1 is showing a hub at pc2 ip address. I turned the wifi off on pc2 and pc1 still shows it as a hub. I double checked the ip on both pc with ipconfig. pc1 showing my android hub as in use by pc1, pc2 was indicating the android hub in use by other. transfer still stalls and the system messages box is empty on pc1. didnt try pc2 because the wifi is off.

#21

Sorry ross im not sure what you are doing. What "transfer" stalls? Can you just clearly say your setup. I dont really know what you have setup there. You havent told me whats in the log file?