How can TCP/IP client connect to Server TCP/IP socket?

G

Guest

Hi,

I have a Server TCPIP socket open at 192.168.1.100, port 80. When I use an
C++ Client application to connect it ---> It works fine!

However, when I use VB.net with:
=========================================
Dim tcpClient1 As New TcpClient
Dim ipAddress As IPAddress
ipAddress = Dns.Resolve("192.168.1.100").AddressList(0)

Try
tcpClient1.Connect(ipAddress, 80)
Catch ex As Exception
Console.WriteLine(e.ToString())
End Try
==========================================
I built without any errors, but when I execute it, it show errors!

Can any one show me how to do it right?

Many thanks,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top