Re: How do I get my own IP address?

new topic     » goto parent     » topic index » view thread      » older message » newer message
useless said...

$%^#%^&@$%^!$ ^!#%B@!$ Y$@#$ creole.

...jimcbrown said stuff about printing out data to the screen....

So by running that code, and not printing out the ip, i have selected which nic the computer will use to send my http request to the world? I fail to see how that will happen.

Again, how does printing this out, or not print it out, tell winxp which nic to talk to the outside world with?

useless

Simple. It doesn't. You have to pass the ip to use to the OS level socket command. This code helps you figure out which ip(s) to pass.

I'll let Jeremy answer on how to pass the ip to the new 4.0 stdlib connect() function, as when I looked at the code in be_socket.c it wasn't immediately obvious to me.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu