How can i find my LAN IP Address using std.socket?
Dicebot
public at dicebot.lv
Tue Feb 4 08:17:01 PST 2014
On Tuesday, 4 February 2014 at 16:13:33 UTC, Dicebot wrote:
> It results in all addresses you hostname resolvs to. On all
> desktop linux machines /etc/hosts is configured to resolve
> hostname to "localhost" by default. On servers it usually
> resolves to externally accessible one.
Update: I have just checked and this is actually distro-specific
right now. My Arch box does not have that /etc/hosts entry and
resolves host name to whatever first configured network interface
has. Ubuntu does have explicit host name entry in /etc/hosts
which resolves to localhost.
More information about the Digitalmars-d-learn
mailing list