[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: what's the right way to resolve localhost's IPs



On Wed, Mar 22, 2023 at 09:12:19AM +0800, fh@dnsbed.com wrote:
> In my shell script, how to get the localhost's IPs (eth0 and eth1)
> correctly?
> I know I can run 'ifconfig' and grep etc, but it's maybe not that graceful.

https://mywiki.wooledge.org/IpAddress


Reply to: