[CSocketMaster][UDP] Connection reset by peer
Hy i have one un unintelligible error. In VB6 i try to send UDP packet over the network but i get one idiotic error which doesnt sems to be right becouse UDP packets are not like TCP where you have first to establishe connection and then send packet. UDP packets are just sent they are like "send and forget" If the packet gets there, he gets with no respond message so i can not understand why i get this error "Connection reset by peer" witch is typical for TCP packets...
VB Code:
''code for sending some test data
socket.RemoteHost = txtAddr.Text
socket.RemotePort = txtRemPort.Text
socket.SendData Text1.Text
Re: [CSocketMaster][UDP] Connection reset by peer
What is the exact wording of the error and what is the error number?
Re: [CSocketMaster][UDP] Connection reset by peer
Well it looks like all you are doing is setting the port and address not actually connecting to it ;)
Re: [CSocketMaster][UDP] Connection reset by peer
whats happening om the receiving end? Is it one of your applications receiving the data?
Re: [CSocketMaster][UDP] Connection reset by peer
right now i did find out if i enter my localhost address 127.0.0.1 then i get this error. But if i enter any other addres like from my ethernet card 192.168.0.5 or address of my other pc 192.168.0.3 or even the address of linux server 192.168.0.1 i dont get this error. I can enter the address that doesnt exists and i will not get that error.
I only get error if i enter localhost or 127.0.0.1 which is very weard becouse it have to work for any address even for that doesnt exists, and thats te point of UDP.
Paul M: in UDP packet protocol you dont have to connect to another host
Atheist: yes im reciving data on another app but the catch is that only if the address is not 127.0.0.1 or localhost so i can not test my app if im on the way...:/
Hack: the error number is 10054
Re: [CSocketMaster][UDP] Connection reset by peer
Try setting remotehost to '192.168.0.255'
it will broadcast to ip's 192.168.0.1-254, including the local machine.