Can a vb client interact with a vb.net server?

Jeffo

Member
Joined
Apr 26, 2005
Messages
9
Programming Experience
1-3
Im trying to add a client to a previous program im working with so that the prgoram uses vb6 and the server runs on vb.net, but both client and server say the portnumber is already in use.
Does this mean that you need both client and server to be written in the same language?
 
if the port number is in use then you need to select a different port number

vb6 can interact with vb.net as long as the same protocols and port's are being used on both ends
 
Sounds like you selected a common port number and something is already using it. As JuggaloBrotha said try selecting a different port (on both the client and server).
 
Yes it seems i accidentaly specified the local port on the client to be the same as the remote so it conflicted.

Although now there seems to be the problem where the client will connect to the server but it wont actually send anything
Is the code below correct to actually send a string to the server?

VB.NET:
Dim sData As String
sData = "vb6 sends"
 
Winsock1.Connect
If Winsock1.State = sckConnected Then
	Winsock1.SendData sData
	Label1.Caption = "Sending Data"
Else
	Label1.Caption = "Not currently connected to host"
End If
Winsock1.Close
 
Back
Top