Hello all,
I have a question for unicast of UDP .
I don't know how to send unicast value from Client to Server.
below is my code
Client:(ex:Client Address : 192.168.31.193 )
- import hypermedia.net.*;
- UDP udp;
- void setup(){
- udp=new UDP(this,2346," 192.168.32.114 ");
- udp.listen(true);
- udp.send("b");
- }
- void draw(){
- }
- void receive(byte[] data,String group_ip,int port){
- println(data);
- }
The error print:
opening socket failed!
address: 192.168.32.114 , port:2346 [group:null]
Cannot assign requested address: Cannot bind
Server: ex:(Server Address : 192.168.32.114)
- import hypermedia.net.*;
- UDP udp;
- void setup(){
- udp=new UDP(this,2346);
- udp.listen(true);
- }
- void draw(){
- }
- void receive(byte[] data,String group_ip,int port){
- println(data);
- }
Tidy
1