通过网络扫描发现服务器IP地址 [英] Discover server ip address through the network scanning

查看:341
本文介绍了通过网络扫描发现服务器IP地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要开发C#客户端 - 服务器应用程序,我需要告诉客户端服务器的IP地址是什么可能发生从客户端或从服务器广播。

i'm going to develop C# client-server application, and i need to tell the clients what is the server's ip address it could be happen from client or from server broadcasting.

任何帮助和soloution在这可以是非常有用的,如果有一些示例代码,它会更好!

any help and soloution on this could be very usefull, and if there is some sample code it would be much better!

谢谢。

推荐答案

您可以使用BroadCast方法广播
这里一个项目,显示您如何做:
http://www.codeproject.com/Articles/12286/Simple-Client- server-Interactions-using-C

you can broadcast using BroadCast method here a project that shows you how to do it: http://www.codeproject.com/Articles/12286/Simple-Client-server-Interactions-using-C

这篇关于通过网络扫描发现服务器IP地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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