Socket communication between two networks having two different IP addresses

Hello there,

I am facing a problem in which I am trying to share data between two networks having two different IP addresses by socket communication.
So my question is that is it possible to share data in such way.

IP address of cobot- 172.20.197.151
another IP address from which I am trying to receive data- 10.187.6.229

One more point is I am able to ping 10.187.6.229 this IP address from Cobot.

Thanks in advance.

What exactly is the network topology. Same LAN different subnets?

Any time you interface with a windows computer you’re probably going to have to create some new rules in windows firewall to let your socket communication from the robot in.