C++ Programming
06-12-2009, 06:41 AM
Dear all,
I have two lan cards.
So I have two ip address, too.
When I connect to server, how to get ip address of connected socket (clinet side NOT server side).
I could get ip address list of desktop using 'gethostbyname()'
But I didn't figure what ip address is current ip(lan card)
Do you have any solution?
Thanks.
cozyu
I have two lan cards.
So I have two ip address, too.
When I connect to server, how to get ip address of connected socket (clinet side NOT server side).
I could get ip address list of desktop using 'gethostbyname()'
But I didn't figure what ip address is current ip(lan card)
Do you have any solution?
Thanks.
cozyu