如何通过传递凭据来连接机器(计算机)和Wifi服务器

时间:2014-10-17 04:52:41

标签: c# .net sockets tcp network-programming

我必须开发一个用于互联网数据使用的Wifi服务器计费应用程序。现在这是我的工作流程..

1.Any System in the Wifi range will require Username and Password to get connected with the Wifi Server.
2.The moment any system gets connected into the Wifi Server after passing correct username and password My application should know the IP address of the system along with Connection time.
3.Now from there whatever data is used by that System (Ip address) should get recorded in my system.

这就是我想要开发的基本wifi计费应用程序。

那么我怎样才能开始开发这个应用程序。我对c#中的TCP / Ip和套接字编程有点了解。

任何建议或帮助都受到高度赞赏..

谢谢..

1 个答案:

答案 0 :(得分:2)

在这里讨论这个问题太多了,但实质上你需要确保不允许任何主机连接,并根据MAC地址为其路由流量,直到它被您的计费系统授予访问权限。对于此类主机,您只允许他们“与某个IP /端口通信”,该IP /端口为您的计费系统提供网站。

为了实现这一目标,您需要一种直接与WIFI接入点和路由器(可能是同一设备或不同设备)接口的方法。

已经有一些这样的系统可供使用,即使你准备跟随白兔,你仍然应该熟悉那里的东西。尝试了解这些系统的工作原理和原因及其局限性。然后,您可以尝试自己动手,或者可以与已有的一个进行集成或扩展。