Android Question what is the correct way to set udp socket?

Addo

Well-Known Member
Licensed User
Longtime User
i have seen the network tutorial i am trying to use udp socket but i am not sure on how to set the ip that i am listening to
B4X:
UDPSck.Initialize("UDP", ip, port) 'is this correct ?
 

Addo

Well-Known Member
Licensed User
Longtime User
i couldn't understand the Initialize part should i put the ip address in the first parameter instead of autodiscover ? or i should Initialize udppacket to subscribe ?

B4X:
autodiscover.Initialize("autodiscover",discoverPort , 8192)
 
Upvote 0

OliverA

Expert
Licensed User
Longtime User
Upvote 0
Top