• Post Reply Bookmark Topic Watch Topic
  • New Topic

Getting the external(public) IP of a computer

 
Mikael Fox
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello friends,
I am having a small problem, i have already designed a chat application, the chat works fine over a local network but now I want to use it over the internet. Logically the program should but what happened is that to get the IP I have used




and it gives only the local and I want the public IP of that machine. Can someone help me please.

I just want to get the external IP in a textbox!!

Thanks a lot in advance for your help.
Regards
Mike

Edit:

Sorry ... I have move it to here.
 
Rusty Shackleford
Ranch Hand
Posts: 490
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you computer has a private IP, you need to ask the router/switch or go to one of the 'what is my IP' site. I am not sure how to do it programmaticly.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!