Home > Back-end >  Java socket how to obtain the received UDP packet network card address
Java socket how to obtain the received UDP packet network card address

Time:10-04

Server environment for multiple network card to receive udp broadcast message, the server is using a netty, which is unable to get to the network card to receive the message, if the binding specifies the IP address of the card cannot be listening to the radio message, can only listen to the radio when binding 0.0.0.0 message, my demand is need to know is which card to receive radio message, and the IP address of the access to the network card,
Query about the way Java native socket is the same problem, I don't know is there any students can solve the demand of the above, I
  • Related