Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / March 2008

Tip: Looking for answers? Try searching our database.

How retrieve Public IP?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mttc - 24 Mar 2008 09:24 GMT
I have Remoting App (on tcp channel with no web server). I need to
know the Client IP(public ip). I not find any way to retrieve this
info when client call remoting procedure (singelton)?
So my Q is how can client know his public IP to send it to server?
Peter Duniho - 24 Mar 2008 17:41 GMT
> I have Remoting App (on tcp channel with no web server). I need to
> know the Client IP(public ip). I not find any way to retrieve this
> info when client call remoting procedure (singelton)?
> So my Q is how can client know his public IP to send it to server?

I don't know if this is exposed via .NET, but if it is you're looking for  
"Universal Plug and Play" (aka "UPnP").  Probably in the WMI classes.

Keep in mind that just knowing your Internet IP address is unlikely to be  
sufficient.  If you really need to know that address (and there's a good  
chance you don't), you probably also need to configure the router  
identified via UPnP to forward traffic sent to that address on a specific  
port to your own local host computer and application.

Other than "how" to get at the UPnP information, this is really more of a  
networking question than a .NET question and you'll probably get better,  
more detailed answers in a newsgroup dedicated to networking questions.

Pete
Peter Ritchie [C# MVP] - 26 Mar 2008 16:14 GMT
Your public IP is often assigned by your ISP--to which you likely have no
access.

There's various web-sites out there that will echo back your IP, for example
http://www.whatismyip.com/

Signature

Browse http://connect.microsoft.com/VisualStudio/feedback/ and vote.
http://www.peterRitchie.com/blog/
Microsoft MVP, Visual Developer - Visual C#

> I have Remoting App (on tcp channel with no web server). I need to
> know the Client IP(public ip). I not find any way to retrieve this
> info when client call remoting procedure (singelton)?
> So my Q is how can client know his public IP to send it to server?

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.