• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 506
  • Last Modified:

Serial port via TCP/IP

Hi,
I need to communicate with a device via its serial port, however the messages will, be sent via the internet, how can this be achieved using .Net 2.0?

I have the IP Address and the port No.
0
rowdydowdy
Asked:
rowdydowdy
  • 2
1 Solution
 
r1937Commented:
serial ports do not work on IP address : port.
You only need to specify mainly COM port, Baud rate.

Just drag and drop the "serial port" from the toolbox and set the settings
- OR -
Dim sp As New System.IO.Ports.SerialPort("COM1", 9600, IO.Ports.Parity.None, 8, IO.Ports.StopBits.One)
0
 
rowdydowdyAuthor Commented:
Sorry I haven't explained this very well, but I am being drip fed information.
it isn't a serial connection as in serial  port, and I can communicate with the device using telnet, Is there anything in .Net that facilitates this?
0
 
r1937Commented:
can you pl elaborate the question.
What is the device. Is there a serial port connection / Internet.
Can you explain the setup and you intentions.

Or are you talking about virtual serial ports, whiich I am not good at :(
0
 
gregoryyoungCommented:
Take a look at the TCPClient class in System.Net ... a quick google will give you tons of examples.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now