如何将udp数据包从公共IP发送到本地Lan Machine [英] How to send udp packets from public Ip to local Lan Machine

查看:198
本文介绍了如何将udp数据包从公共IP发送到本地Lan Machine的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将udp数据包从公共IP发送到本地Lan Machine,它可以访问该pulblic Ip和所有端口。

How to send udp packets from public Ip to local Lan Machine which can able to access that pulblic Ip and all ports.

推荐答案

了解端口转发的。如果应该从公共IP建立连接,并且执行转发的路由器使用具有动态分配的IP地址的拨号连接,请同时阅读动态DNS



设置端口转发和 - 如果需要 - 动态DNS后,可以像任何其他UDP连接一样发送数据包。



连接到使用配置的公共端口的路由器的公共IP /域(使用它时的动态DNS名称)。路由器会将数据包转发到本地计算机的配置本地IP和端口。
Read about Port forwarding. If the connection should be established from the public IP and the router which performs the forwarding uses a dial-up connection with dynamically assigned IP addresses, read also about Dynamic DNS.

After setting up port forwarding and - if necessary - dynamic DNS, packets can be send like for any other UDP connections.

Connect to the public IP / domain of your router (the dynamic DNS name when using it) using the configured public port. The router will forward the packets to the configured local IP and port of your local machine.


同意Jochen Arndt。我想你还必须阅读NAT。
Agree with Jochen Arndt. I guess you have to read also about NAT.


这篇关于如何将udp数据包从公共IP发送到本地Lan Machine的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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