Re: How do I get my own IP address?
- Posted by jimcbrown (admin) Sep 21, 2009
- 2278 views
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.