如何使用silverlight 2代码获取本地MachineIP地址? [英] How to get Local MachineIP address using silverlight 2 code ?

查看:88
本文介绍了如何使用silverlight 2代码获取本地MachineIP地址?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



如何在Silverlight中获取本地机器的IP地址2.请发送代码

紧急 . . .

请给出简单的示例代码


感谢

解决方案

Silverlight无法轻松提供此功能,可能是因为它在客户端没有用.

但是,您可以在服务器端执行此操作,然后将其传递给客户端上的Silverlight应用程序.几个例子(很容易Bing''d)...

获取您的客户IP地址 [ ^ ]

URL引荐来源网址,屏幕分辨率,客户端的数据时间和IP地址 [ 解决方案

Silverlight doesn''t provide this easily, probably because it''s not useful on the client end.

You can do it on server side, however, and pass it to the Silverlight app on the client. Couple examples (easily Bing''d)...

Obtaining Your clients IP Address[^]

URL Referrer, Screen Resolution, Client''s Data Time and IP Address[^]


You cannot do this in a reliable way.
You can use JavaScript to get the IP (but even that is not always reliable).


This is one of the few questions that you have posted off-late.

Let me clarify you few things.

It does not work like this here. There is no quick question here. We expect you to put some time in trying the issue that you are facing and then some time in formulating the question while posting here.

Here is what is expected by enquirers:
1. TRY first what you want to do!
2. Formulate what was done by you that looks like an issue/not working.

Try them and tell if you face issues.
Members will be more than happy to help like this.

To start with, Google and see what all you comeup with. If you are still confused then share the findings with your doubt and we will try to suggest possible options for the issues.


这篇关于如何使用silverlight 2代码获取本地MachineIP地址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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