here client side code is for windows, but server side its there for LINUX, what I want is server side also should be for windows, any link is there so that i can just refer and learn
or if I can get some hint how to proceed would be very helpful, client side I am able to install virtual driver , but server side where actuall USB will be attached , I think server should be there so that communication can happen.
please provide some idea how to proceed, basically I need win to win .
but how to use it as server, if i go through the documentation its not clear, the command which is mentioned is for linux machine right, need some idea how to achieve this, actually i have remote application which uses TCP channel to communicate,where i just want to redirect USB from host machine to local machine. just to achieve that i am referring this but not able to get how to redirect actual host side attached USB to local machine where virtual driver will be installed
Have you not done TCP/IP socket code? When a server binds to 0.0.0.0, that just means "we are listening on all the interfaces". You should be able to use any IP address that the server exposes. If you're on the same system, use 127.0.0.1. Otherwise, you'll need its IP address.
i am using usbip-win code from the git path i shared above, i think they already have handled socket part and as per their doc we just need to call usbipd.exe -d -4
but after running this command the ip i got is 0.0.0.0 and same i am using at server side to attach
usbip.exe attach -r 0.0.0.0 -b busid
but the connection keeps failing
so what is the issue here, do i need to code my own tcp ip channel and that we can use for communication between usb ip server and client or this usbip-win code itself has some issue?