Wenfei wrote:
> addr_in.sin_addr.s_addr = INADDR_ANY;
>
> fprintf("server address is %s\n", inet_ntoa(addr_in.sin_addr));
>
> When I try to see the address as above, it always show me 0.0.0.0. But
> I know the real address which my server uses is not 0.0.0.0. How I can
> know the real address of INADDR_ANY which is assigned automatically by
> the machine?
I already answered this EXACT question on alt.winsock.programming. Please learn
to properly cross post.
--
Phil Frisbie, Jr.
Hawk Software
http://www.hawksoft.com