0

I would like to know what the ip address of a Silverlight 4 out of browser application. This would be the ip address that is on the internet, not the LAN ip. I am communicating with a WCF service that is NOT hosted by IIS but by my own Windows service.

Craig
  • 770
  • 3
  • 14
  • 26
  • I don't know if it is possible to do from a Silverlight app, but it probably straight forward to do from the server side instead, especially considering you want the public ip. – Markus Johnsson Feb 11 '11 at 20:48

1 Answers1

0

I'd say the best way is to send a request off to a really dumb web service whose sole job is to return the IP address of the requester back.

It'd be async, though, so that may not be great depending on your scenario. And of course if the IP address changed (DHCP renewed, say) then you wouldn't know to go ask again.

Why do you want to know the client IP address? Maybe there's a way to solve your problem without needing to know it.

Austin Lamb
  • 3,116
  • 1
  • 22
  • 13
  • Ok I had a brain fart. Forgot I could get the ip address during the WCF call. Thanks for helping with the synapse :) – Craig Feb 13 '11 at 16:51