Click to See Complete Forum and Search --> : Read Remote Port
dschuessler
Jan 5th, 2006, 03:04 PM
Hello Everyone, I have been playing with a socketserverlib.server control and basically I just open a port on my pc and then from any pc can connect through hyperterm and watch communication.
However, Now I need to be able to watch a different device by the ip/port. This is not a pc so I can not install a listener on it. I have a device that sends data to 192.168.1.xxx:???? Can I monitor that 192.168.1.xxx:???? or can I forward that ip/port to my listener program. I hope this makes sense. All I am trying to do is read that port. Remotely from a pc. I can not seem to get winsock to read a remote ip/port. Any help is greatly appreciated.
Thanks
Dan
Pino
Jan 6th, 2006, 09:24 AM
Hi, can I ask,
what is socketserverlib.server ?
Thanks
dschuessler
Jan 6th, 2006, 04:23 PM
Here is the program that I use to listen on the local pc. When I run the program I can input a port and it works great as a listener. However, I was wondering if it could be fixed to listen on a remote ip. What a device is sending to a remote ip. Then I would use my pc with this program to listen to the remote ip and port. I hope this helps. I think this is everything to run the program. I can not remember where I got the code from it should say, but I have stripped out things to make easier for me to understand. It is a great little program, but only allows me to listen to a port on my local pc. Please let me know if I can do this remote listening how I want to. Thanks Dan
dschuessler
Jan 6th, 2006, 05:49 PM
To Clairfy a little what I am wanting to do basically i have a serial box like a jetdirect box.
I can send a print job to the device at 192.168.1.xxx then out of the serial/parallel port (9100,9101) it prints to the printer. All I want to do is be able to capture the data as it is going to the device. This way I do not need to have the parallel/serial cable coming out of the device tied to a pc. And then read the serial/parallel port on the pc. Basically I am trying to eliminate a need to have a pc port by reading via tcpip.
Current settings that work.
say scanner to device
device to pc
read the pc
What I want to do:
say scanner to device
then read the device's ip address/ports capture the packets in ascii or some readable format as they are being sent to the device.
Thanks
Dan
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.