is there a simple function that will return the IP address(s) of the machine the program is run on? im looking but i cant find anything.
is there a simple function that will return the IP address(s) of the machine the program is run on? im looking but i cant find anything.
You might need to know Winsock programming to do that sort of thing. Just a suggestion, I don't do Winsock so I can't really point you in any direction. But, that is what first came to mind.
1978 Silver Anniversary Corvette
try using something like
gethostbyname("localhost");
(you might need to use WSAAsyncGetHostByName if you are using Socket windows).
good luck
U.
Quidquid latine dictum sit, altum sonatur.
Whatever is said in Latin sounds profound.
If that doesn't work (and there's no reason why it shouldn't), here's a FAQ with three alternate methods.
"Optimal decisions, once made, do not need to be changed." - Robert Sedgewick, Algorithms in C
try this previous thread...
http://www.cprogramming.com/cboard/s...=&postid=36422
Sometimes, the farthest point from the center is the center itself.
Your life is your canvas, it's only as beautiful as you paint it.