问题
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:
The solution I found is that there is no way of hosting a multicast server online. Rather than simulating a local network using f.e "hamachi" or any other software.
来源:https://stackoverflow.com/questions/16224270/host-udp-multicast-online-possible