Using Sockets- Chat Client and server (networking)

decrypt

Well-known member
Joined
Oct 6, 2003
Messages
216
Hi, I was working with a vb.net sample in the Visual Basic .NET Resource Kit called Advanced .NET Framework (Networking) - Use Sockets.

I had never worked with any networking projects in vb, so i decided to make an upgrade to the program for fun. I finished upgrading the program.

The server and client worked together fine on the same computer,
but when i hosted it on one computer and tried to connect on a different computer, i get a System.InvalidCastException.

Does anyone know why? Please help.

Thank you.
 
Without any code, noone will know why.
InvalidCastException means you tries to turn one type of class into another type that isnt compatible:
Code:
Dim S As Integer = "This is a string"
 
Back
Top