Host UDP Multicast Online, possible?
问题 I have made a server that uses UDP multicast sockets. I am able to run the server on my local host and try with as many clients as I want. The problem is that i'm new to UDP and multicast and now I need to connect to another pc using the internet. For example: group = InetAddress.getByName(sendAdd); buf = senddata.getBytes(); packet = new DatagramPacket(buf, buf.length, group, senderPort); Is there anyway to host the UDP multicast server online? What InetAddress should I use in that case? 回答1