无法接收,因为我无法在UDP端口上绑定 [英] Cannot receive because I cannot bind on a UDP port

查看:333
本文介绍了无法接收,因为我无法在UDP端口上绑定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在A端口(假设端口500)上接收数据,并且该端口正在被其他人使用,所以我无法在该端口上绑定/接收.

I wanted to receive data on A port (suppose port 500), and that port is in use by something else, SO I can NOT bind/receive on that port.

实际上,我只需要在该端口上发送内容的REMOTE端点IPAddress.

Actually I only need the REMOTE endpoint IPAddress that is sending something on that port. 

因此,我决定在该端口上构建一个类似数据包嗅探器"的东西,该嗅探器可以查看数据包来自何处".仅此而已.......

So I decided to build something like a packet sniffer that can "SEE from where the packet is coming" on that port. ONLY THAT, nothing more..........

有人可以帮我吗?

我只是C#的业余爱好者,所以请用简单的代码plss .... ??

I''m just an amateur in C#, so plss in simple codes plsss....??

我在网络上发现了数据包嗅探器,但我不理解代码.

I found packet sniffer on the net but I don''t understands the codes.

我要采取什么措施来嗅探端口上的数据包?

What are the steps that i have to take to snif packets that is coming on a port???

help plsss ....

help plsss....

推荐答案

如果您不了解数据包嗅探器的信息,怎么办可能希望编写任何形式的通讯程序?我建议您花一些时间来阅读TCP/UDP协议和套接字的使用.

If you don''t understand the information from the packet sniffer, how can you possibly hope to write any sort of commuications program? I suggest you take some time to read up on TCP/UDP protocols and the use of sockets.


这篇关于无法接收,因为我无法在UDP端口上绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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