Cannot see devices when running as server (windows)

21 posts / 0 new
Last post
mriber
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?

Michael
No the service doesnt share

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

mriber
Okay, guess I know what's

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

Michael
You can edit the file at C:

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)

mriber
Perfect, it solved my issue.

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

Michael
Yeah good idea, done now...

Yeah good idea, done now...

joanna_malysa
Hello

Hello

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

Michael
.

try

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

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

joanna_malysa
Hey

Hey
I have run:

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

I got: [hub ip]*

Michael
you put your ip address in

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

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

joanna_malysa
Hey again

Hey again
Yes, I did. And the result is the same :(

Michael
There was a bug with the auto

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.

joanna_malysa
I have updated to 3.2.3

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?

Michael
No, enable SSL is always on

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

joanna_malysa
Here is what I get

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

Michael
Thats a clue, it cannot

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

joanna_malysa
I tried run this:

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.

Ross Thompson
connection to host lost

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.

Michael
.

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?

Ross Thompson
using as tcp, no vpn.

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.

Michael
.

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?

Log in or register to post comments