Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8223769
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T14:49:50+00:00 2026-06-07T14:49:50+00:00

Lets say my IP currently is: 123.123.123.123 How can I get that string programmatically?

  • 0

Lets say my IP currently is: 123.123.123.123

How can I get that string programmatically?

Note: I don’t want to get this IP: 192.168.0.10, I want that IP which others can use to connect into my computer via HTTP or anything.

NOTE: I dont want to open some web-page such as ip4.me to get the address, I want to get it with just C++.

I tried to google but every suggestion was “load a page and read the IP it tells you”. Is that really the only way?!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T14:49:51+00:00Added an answer on June 7, 2026 at 2:49 pm

    You can fetch it from http://api.externalip.net/ip/ or some similar services, but I’m not sure how reliable these sites are, in means of availability

    Any other way would be extremely complicated, as in general, no network equipment has api to tell external IP, and even if it had, you can not tell is there a simple xDSL router in front of you or Cisco ASA nating outbound traffic

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently, lets say that I have this code: While r <> HI r =
Lets say I have a class A that is fairly simple like this -
I'm currently writing DataTemplate for my custom type lets say FootballPlayer. In this template
Lets say that you get involved in the development of a large project that
Hi so this may sound odd but lets say currently I am doing this:
Lets say I have a generator function that looks like this: def fib(): x,y
Lets say I have a Silverlight application that currently talks to a WebRole in
Lets say that you have a business object whose current state implies that there
Lets Say i have a table like this WEB_LIST_TABLE KEY Value ---------------------------------------- 134 google.com
Currently, I am doing a search function. Lets say in my database, I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.