Host UDP Multicast Online, possible?

老子叫甜甜 提交于 2019-12-12 01:09:28

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!