Can't maintain a stable connection

I am running a mac client and a windows server. It seems to connect but doest stay connected.

I am getting this error message on the mac client:

08:35:01 INFO :Server ping timeout, shutting down connection 1...
08:35:01 INFO :Connection 1 receiving msg size didnt complete due to error 9, Bad file descriptor
08:35:31 INFO :Server ping timeout, shutting down connection 1...
08:35:31 INFO :Connection 1 receiving msg size didnt complete due to error 9, Bad file descriptor

I am getting this error message on the windows server:

2017-01-09 10:00:58 INFO :>>> Starting VirtualHere USB Server v3.1.9 (Built: Dec 6 2016, 13:12:22)<<<
2017-01-09 10:00:58 INFO :Using configuration config.ini
2017-01-09 10:00:58 INFO :Server licensed to=unlicensed max_devices=1
2017-01-09 10:01:02 INFO :TCPServer starting...
2017-01-09 10:01:02 INFO :Listening on all network interfaces at port 7575 (IPv6 dual-stack)
2017-01-09 10:01:03 INFO :Registration called
2017-01-09 10:01:06 ERROR :Error loading string descriptor (not string) for device on port 3
2017-01-09 10:01:06 INFO :Found High speed device [04f2:b446] "SunplusIT Inc, TOSHIBA Web Camera - HD" at address 1
2017-01-09 10:01:06 INFO :Found Full speed device [0930:0227] "0x0930, 0x0227" at address 2
2017-01-09 10:01:06 INFO :Found Full speed device [046d:c52b] "Logitech, USB Receiver" at address 3
2017-01-09 10:06:24 INFO :74.80.245.58 connected
2017-01-09 10:06:39 INFO :Connection 1 successfully removed (reason:timeout)
2017-01-09 10:07:15 INFO :74.80.245.58 connected
2017-01-09 10:07:30 INFO :Connection 2 successfully removed (reason:timeout)
2017-01-09 10:31:17 INFO :74.80.245.58 connected
2017-01-09 10:31:32 INFO :Connection 3 successfully removed (reason:timeout)
2017-01-09 10:33:18 INFO :74.80.245.58 connected
2017-01-09 10:33:35 INFO :Connection 4 successfully removed (reason:timeout)
2017-01-09 10:34:19 INFO :74.80.245.58 connected
2017-01-09 10:34:35 INFO :Connection 5 successfully removed (reason:timeout)
2017-01-09 10:34:50 INFO :74.80.245.58 connected
2017-01-09 10:35:04 INFO :Connection 6 successfully removed (reason:timeout)
2017-01-09 10:35:20 INFO :74.80.245.58 connected
2017-01-09 10:35:34 INFO :Connection 7 successfully removed (reason:timeout)
2017-01-09 10:35:51 INFO :74.80.245.58 connected
2017-01-09 10:36:06 INFO :Connection 8 successfully removed (reason:timeout)

#2

Your network connection is dropping out. VirtualHere pings between client <-> server every 3 seconds if it doesn't hear from these pings after about 9 seconds it will "timeout" as the connection is assumed broken. Is this over a mobile network?

#3

It is a wired connection. There is a vpn connection to put both computers on the same subnet. The mac is running mac osx server and is hosting the vpn server.

#4

My guess is the VPN is somehow going down briefly, is there some "keep-alive" setting or something with the vpn?

#5

I ran a ping test (from client to server) in parallel with the server software to see if the connection drops. The ping test shows no drop in connection. I am still getting the time out. The client side the of the software would show the server for a few seconds before going off and then it will show up again and then off again.

#6

Also i forgot to mention your VPN must honor the TCP_NODELAY flag. VirtualHere uses this extensively and some VPNs dont pass that through.

#7

I tried connecting with a mac using the same VPN (L2TP) and using the osx virtualhere server and it works fine. The PC with Windows 7 is connected using the build in VPN via L2TP and the ping works fine. However, the windows virtualhere server seems to be timing out in its connection to the client (a mac running virtualhere client) hosted in a datacenter.

#8

I still think its the VPN, can you just temporarily test by turning off the VPN and using direct connection from the data center? Of if not can you try another vpn that honors the TCP_NODELAY. Perhaps using softether or openvpn for windows