it works,as spirit said that socket_connect function need a UDP server first.i have tried the VB program and it has received the data.

i think that session_ function is used for session_connect and session_open not UDP .
next time i will try that out.

thank Spirit for the information. Great help