Forum OpenACS Development: Re: NaviServer on Windows: [ns_info address] returns IP v6 address

This would still not fix the issue on Linux, where [ns_info address] returns 127.0.0.1.
Why don't you revert to the code in AOLserver?

Cheers,
Frank

please explain, why you believe the result is incorrect for your Linux box. You mentioned that the hostname of your Linux box is "project-open-v50-dev" and ping project-open-v50-dev pings to 127.0.0.1. So, the result is perfectly correct.
Hi!

I got the "bug" - my bug. I assumed that ns_info address on AOLserver 4.5.1 Linux as intuitively required. But it doesn't. I've just installed AOLserver 4.5.1 and checked.

So both system implement ns_info address in the same way, and reverting wouldn't fix my issue.

Conclusion: You could change the implementation in NaviServer in order to prefer the IPv4 address over the IPv6 address. But otherwise everything is like it was.

=> We'll work with our own implementation of extracting the IP from ifconfig/ipconfig tool output.

Cheers!
Frank

The easiest way to find all IP-addresses of the the actual hostname is probably:
ns_addrbyhost -all [ns_info hostname]