Is it possible to send a UDP broadcast packet to a different subnet through a router? I’m writing an app to discover certain devices on the network, and the PC might be on a different subnet than the devices it’s looking for.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, and no.
It’s actually do-able, so long as the intervening routers don’t have
no ip directed-broadcastsor similar configured. However these days that’s the default because allowing normal broadcasts to traverse routers is a DoS problem.If you really want to broadcast across subnets then you should be using IP Multicast instead. That still requires that the intervening routers are configured appropriately, but it is the ‘right’ way to do it.