我想从路由器ip到本地ip如何进行端口转发?在 c# 中,我有这个代码用于使用本地 ip 接收
r.Bind(new IPEndPoint(IPAddress.Any, int.Parse(this.textBox2.Text)));
while (true)
{
br = new byte[16384];
r.Receive(br);
m_Fifo.Write(br, 0, br.Length);
}
其中 br=buffer , textbox2 = local , ip r socket 我尝试在这个线程中使用代码但我无法连接它们C# Raw Sockets Port Forwarding