UDP Send and Recieve

BlitzMax Forums/BlitzMax Beginners Area/UDP Send and Recieve

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hi, Im new here. Although I've been using blitzmax for a bit. :)
I tried to connect to a server and send a string through UDP and recieve the string the server sends. I see in my packet analyzer program the server responds, but i cannot seem to get the string recieved in BlitzMax.

Heres my code
Framework BRL.Socket
Import BRL.SocketStream
Import BRL.StandardIO

Global serverIP = HostIp("83.149.87.203")
Global port = 7778
Local socket:TSocket=CreateUDPSocket()
ConnectSocket(socket,serverIP,port)
Local stream:TStream=CreateSocketStream(socket,autoclose=False)
WriteLine(stream,"\info")
Repeat
Print ReadLine(stream)
Until Eof(stream)
CloseSocket(socket)


Is there anything Im doing wrong?