本文介绍了如何获取连接到LAN的系统的IP地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试开发一个Web应用程序,我想在下拉列表中动态获取LAN内连接的所有系统的IP地址。但我所做的是我在dropdonlist中添加了每个IP地址。如何动态获取IP地址。任何人都可以帮忙。



我尝试过:



I am trying to develop a web application and I would like to get IP Addresses of all the systems connected within the LAN dynamically in a dropdownlist.But what i did is i added each IP Address in dropdonlist. How do I do get IP Addresses dynamically. Can anyone help please.

What I have tried:

if (drpDownListUserName.SelectedItem.Text == "IPAddress")
           {
               drpDownListUserIP.Items.Add("UserName");
           }
           else if (drpDownListUserName.SelectedItem.Text == "IPAddress")
           {
               drpDownListUserIP.Items.Add("UserName");
           }

推荐答案


这篇关于如何获取连接到LAN的系统的IP地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 18:04