Connecting Tech Pros Worldwide Forums | Help | Site Map

wan ip

Dave P
Guest
 
Posts: n/a
#1: Mar 15 '06
Need to get my wan ip from my desktop application
any examples

TIA
Dave



Victor Bazarov
Guest
 
Posts: n/a
#2: Mar 15 '06

re: wan ip


Dave P wrote:[color=blue]
> Need to get my wan ip from my desktop application
> any examples[/color]

Post to the newsgroup that deals with your OS. There is no 'wan ip'
in C++ or its library.

V
--
Please remove capital As from my address when replying by mail
Dave P
Guest
 
Posts: n/a
#3: Mar 15 '06

re: wan ip


I know this..so what you all do here...play games
C++ is used too build operating systems, navigation systems, Networking,
so tell me smart man....nobody in here
has a example of writing a small piece of code too
grab a wan ip from the inernal wan

dave..
"Victor Bazarov" <v.Abazarov@comAcast.net> wrote in message
news:qQWRf.6227$a97.2381@newsread1.mlpsca01.us.to. verio.net...[color=blue]
> Dave P wrote:[color=green]
> > Need to get my wan ip from my desktop application
> > any examples[/color]
>
> Post to the newsgroup that deals with your OS. There is no 'wan ip'
> in C++ or its library.
>
> V
> --
> Please remove capital As from my address when replying by mail[/color]


Rolf Magnus
Guest
 
Posts: n/a
#4: Mar 15 '06

re: wan ip


Dave P wrote:
[color=blue]
> "Victor Bazarov" <v.Abazarov@comAcast.net> wrote in message
> news:qQWRf.6227$a97.2381@newsread1.mlpsca01.us.to. verio.net...[color=green]
>> Dave P wrote:[color=darkred]
>> > Need to get my wan ip from my desktop application
>> > any examples[/color]
>>
>> Post to the newsgroup that deals with your OS. There is no 'wan ip'
>> in C++ or its library.[/color]
>
> I know this..[/color]

If you know, why do you post here?
[color=blue]
> so what you all do here...play games[/color]

We discuss the C++ programming language as defined by the ISO standard.
[color=blue]
> C++ is used too build operating systems, navigation systems, Networking,[/color]

Indeed. And if you are looking for info on programming any of those systems,
you need to use system specific libraries that are off-topic here.
[color=blue]
> so tell me smart man....nobody in here
> has a example of writing a small piece of code too
> grab a wan ip from the inernal wan[/color]

No.

Richard Herring
Guest
 
Posts: n/a
#5: Mar 15 '06

re: wan ip


In message <5yWRf.744$4L1.402@newssvr11.news.prodigy.com>, Dave P
<dvs_bis@sbcglobal.net> writes[color=blue]
>Need to get my wan ip from my desktop application
>any examples
>[/color]
Phone IT Support, tell them your name and the barcode on your computer,
and they will tell you. Well, that's what I'd do.

Which is to say, standard C++ has no concept of a "wan ip", so you need
to use a platform-specific library and you'd do better to ask in a
newsgroup dedicated to your particular operating system.


--
Richard Herring
Ben Pope
Guest
 
Posts: n/a
#6: Mar 15 '06

re: wan ip


Dave P wrote:[color=blue]
> I know this..so what you all do here...play games[/color]

Here, we discuss C++ as defined by the ISO standard.
[color=blue]
> C++ is used too build operating systems, navigation systems, Networking,[/color]

Yes, and each one of those is different, and provide their own APIs for
things such as networking. Standard C++ does not have any networking
built in.
[color=blue]
> so tell me smart man....nobody in here
> has a example of writing a small piece of code too
> grab a wan ip from the inernal wan[/color]

Well, on my system this works:

#include <network>

using namespace network;

int main() {
address_t ip = get_external_ip();
}

but as already mentioned, this is OS specific, I doubt very much you
have the same system as I.

Ben Pope
--
I'm not just a number. To many, I'm known as a string...
Dave P
Guest
 
Posts: n/a
#7: Mar 15 '06

re: wan ip


Thank you Ben
dave

"Ben Pope" <benpope81_REMOVE_@gmail.com> wrote in message
news:44184450$0$3295$6d36acad@taz.nntpserver.com.. .[color=blue]
> Dave P wrote:[color=green]
> > I know this..so what you all do here...play games[/color]
>
> Here, we discuss C++ as defined by the ISO standard.
>[color=green]
> > C++ is used too build operating systems, navigation systems, Networking,[/color]
>
> Yes, and each one of those is different, and provide their own APIs for
> things such as networking. Standard C++ does not have any networking
> built in.
>[color=green]
> > so tell me smart man....nobody in here
> > has a example of writing a small piece of code too
> > grab a wan ip from the inernal wan[/color]
>
> Well, on my system this works:
>
> #include <network>
>
> using namespace network;
>
> int main() {
> address_t ip = get_external_ip();
> }
>
> but as already mentioned, this is OS specific, I doubt very much you
> have the same system as I.
>
> Ben Pope
> --
> I'm not just a number. To many, I'm known as a string...[/color]


Closed Thread