Click here to Skip to main content
16,014,591 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi

how to get local machine ip address in silverlight 2 . please send code

urgent . . .

please give simple example code


Thank
Posted

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[^]
 
Share this answer
 
v2
You cannot do this in a reliable way.
You can use JavaScript to get the IP (but even that is not always reliable).
 
Share this answer
 
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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900