Author Topic: Connect to USB device over network  (Read 924 times)

0 Members and 1 Guest are viewing this topic.

Offline metrologistTopic starter

  • Super Contributor
  • ***
  • Posts: 2273
  • Country: 00
Connect to USB device over network
« on: July 24, 2018, 08:41:14 pm »
I have a USB device that receives SCPI commands over raw socket port 9001. I can send *IDN? using Putty when connecting to localhost port 9001.

I got the IP address of my Windows PC and then went to another PC on the network and tried sending to IP port 9001 and there is no connection.

I went to my PC, Windows firewall and added inbound and outbound rules to open port 9001, and still no connection. I used TCP protocol.

Any idea what to try next?

Could this be blocked by antivirus or network security policy? For example, I am not able to execute batch files via scheduled task (I think just from or on network files, but need to check if a local file will execute on local files).
 

Offline KaneTW

  • Frequent Contributor
  • **
  • Posts: 811
  • Country: de
Re: Connect to USB device over network
« Reply #1 on: July 24, 2018, 09:09:42 pm »
* Is the USB device bound to 127.0.0.1 or any interface? If it's on 127.0.0.1, see if you can change it in the config, use SSH forwarding or e.g. http://woshub.com/port-forwarding-in-windows/
* * check this via netstat /a /n on Windows and look for something like TCP    0.0.0.0:43921          0.0.0.0:0              LISTENING
* Is your Firewall blocking 9001 incoming?
 
The following users thanked this post: SparkyFX

Offline metrologistTopic starter

  • Super Contributor
  • ***
  • Posts: 2273
  • Country: 00
Re: Connect to USB device over network
« Reply #2 on: July 24, 2018, 09:50:43 pm »
The USB device has some kind of back end software installed on the PC. I think this utility software acts as a local server that communicates via USB to the device, and the software I/O is via TCP/IP raw socket on port 9001.

So something is blocking communication from one PC term program to another PC host program.
 

Offline KaneTW

  • Frequent Contributor
  • **
  • Posts: 811
  • Country: de
Re: Connect to USB device over network
« Reply #3 on: July 25, 2018, 12:21:19 am »
What does the netstat line for port 9001 say?
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf