IncentivesPro Forum Index IncentivesPro
Leading USB solutions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[SOLVED] autoconnect a server through callback channel

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    IncentivesPro Forum Index -> USB Redirector
View previous topic :: View next topic  
Author Message
kay0822



Joined: 18 Jul 2016
Posts: 3

PostPosted: Mon Jul 18, 2016 12:32 pm    Post subject: [SOLVED] autoconnect a server through callback channel Reply with quote

Hi,
I'm trying to use usb redirector between Linux Server and Windows Client. And mean while, I want to controller redirection on the Server side(Linux). So I create a callback channel using "-createcallback" subcommand on Server side:

Quote:
root@localhost:/usr/local/usb-redirector/bin# ./usbsrv -createcallback 192.168.3.22:32032

====================== OPERATION SUCCESSFUL =====================
Callback connection to remote USB client has been added
===================== ======================= ===================


On the Client side(Windows), I could see server by using '-list' subcommand:

Quote:
C:\Program Files\USB Redirector>usbrdrsh.exe -l

List of USB Servers and remote devices:

1: USB server at 192.168.3.206:65535 - callback connection
Mode: manual-connect Status: connected



And finally, I attempted to using '-autoconnect on -server 192.168.3.206:65535' subcommand on Client Side(windows). Unfortunately, it's not working, and I get error message like following.


Quote:
C:\Program Files\USB Redirector>usbrdrsh.exe -autoconnect on -server 192.168.3.206:65535

******************** ERROR ***********************
Error while changing connection mode.
Operation is not completed. Error: 0x3e3 at 0x90312
**************** **************** ****************



Does it possible to fix this problem?


Last edited by kay0822 on Mon Jul 18, 2016 12:53 pm; edited 1 time in total
Back to top
View user's profile Send private message
Peter
Site Admin


Joined: 01 Aug 2007
Posts: 653

PostPosted: Mon Jul 18, 2016 12:53 pm    Post subject: Reply with quote

Try the following:
1. List clients on USB server with `usbsrv -list clients`
2. Find the callback connection id
3. Run `usbsrv -autoconnect on <callback id>`
Back to top
View user's profile Send private message
kay0822



Joined: 18 Jul 2016
Posts: 3

PostPosted: Mon Jul 18, 2016 1:01 pm    Post subject: Reply with quote

Peter, do you mean running '-autoconnect' on the server side?

Quote:
root@localhost:/usr/local/usb-redirector/bin# ./usbsrv -l clients

================= USB SERVER OPERATION SUCCESSFUL ===============
List of connected clients:
Client id:

2: Client at 192.168.3.22:32032 - callback connection
Platform: Windows 7 Status: connected

===================== ======================= ===================
root@localhost:/usr/local/usb-redirector/bin# ./usbsrv -autoconnect 2

******************** ERROR ***********************
Command line syntax error.
**************** **************** ****************


"USB Redirector for Linux v.3.5" does not seem to have '-autoconnect' subcommand.

Quote:
root@localhost:/usr/local/usb-redirector/bin# ./usbsrv -h

USB Redirector for Linux v.3.5

Usage:

usbsrv <command>

where <command> is one of the following:

-s,-share <device>
Share specified device.
-t,-unshare <device>
Unshare specified device.
-addexclude <device>
Add specified device to exclusion list.
-remexclude <device>
Remove specified device from exclusion list.
-createcallback <address:port>
Create callback connection to remote USB client.
-closecallback <address:port> | <callbackid>
Close callback connection to remote USB client.
-l,-list [devices | clients]
Display a list of all USB devices attached to USB server
or a list of connected clients. Default is to display devices.
-i,-info
Display information about USB server state.
-settcpport <port>
Change TCP port number used to accept incoming connections.
-autoshare on|off
Enable or disable automatic sharing of USB devices.
-nickname "<nickname>" <device>
Set nickname for a device.
Specify empty string to remove nickname.
-timeout <value> <device>
Set inactivity timeout for a device. Timeout value is in seconds.
Set to ERASE to disable inactivity timeout.
-version
Display software version.

<device> is <deviceid> | [-vid <vendorid>] [-pid <productid>] [-usbport <port>]
[-serial <serial>] [-devname "<name>"]

-vid Vendor ID of the USB device.
-pid Product ID of the USB device.
-usbport USB port number as displayed by -list command.
-serial Serial number of USB device.
-devname Device name as displayed by -list command.
The name must be enclosed in double quotes.

Examples:

To share a device by vid, pid and port number:
usbsrv -share -vid 0441 -pid 0012 -usbport 1-2

To share a device by port number only:
usbsrv -share -usbport 1-2

To share a device by id:
usbsrv -share 8

To enable auto-sharing mode:
usbsrv -autoshare on

To create a callback connection to remote USB client:
usbsrv -createcallback 192.168.0.10:32032

To close a callback connection to remote USB client by id:
usbsrv -closecallback 3

Copyright 2007-2013 SimplyCore LLC - Leading USB Solutions
This new unique software product allows to share any USB devices
to use them over local network or Internet.
http://www.incentivespro.com
Back to top
View user's profile Send private message
Peter
Site Admin


Joined: 01 Aug 2007
Posts: 653

PostPosted: Mon Jul 18, 2016 1:05 pm    Post subject: Reply with quote

You've missed the on word, `usbsrv -autoconnect on 2`
Back to top
View user's profile Send private message
kay0822



Joined: 18 Jul 2016
Posts: 3

PostPosted: Mon Jul 18, 2016 1:09 pm    Post subject: Reply with quote

Resolved! Thanks a lot, Peter!
Back to top
View user's profile Send private message
Peter
Site Admin


Joined: 01 Aug 2007
Posts: 653

PostPosted: Thu Jul 28, 2016 8:45 am    Post subject: Reply with quote

Thanks, Kay! I'm marking it as solved.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    IncentivesPro Forum Index -> USB Redirector All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group