可以在线托管UDP多播吗? [英] Host UDP Multicast Online, possible?

查看:105
本文介绍了可以在线托管UDP多播吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经制作了使用UDP多播套接字的服务器.

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.

问题是我是UDP和多播的新手,现在我需要使用互联网连接到另一台PC.

The problem is that i'm new to UDP and multicast and now I need to connect to another pc using the internet.

例如:

group = InetAddress.getByName(sendAdd);
buf = senddata.getBytes();
packet = new DatagramPacket(buf, buf.length, group, senderPort);

反正是否可以在线托管UDP多播服务器? 在那种情况下我应该使用什么InetAddress?

Is there anyway to host the UDP multicast server online? What InetAddress should I use in that case?

推荐答案

我发现的解决方案是无法在线托管多播服务器.而不是使用"hamachi"或任何其他软件来模拟本地网络.

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.

这篇关于可以在线托管UDP多播吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆