[ENet-discuss] Getting the local IP address of the machine for the network where the enet host is.

comex comexk at gmail.com
Thu Feb 13 16:16:10 PST 2014


On Thu, Feb 13, 2014 at 5:05 PM, Sebastian Ahlman
<sebastian.ahlman at gmail.com> wrote:
> The problem is that sometimes there are multiple addresses. For example,
> installing the Windows 8 SDK creates a virtual network for Windows Phone 8
> development. Passing this address as the local address obviously wont work.
> So the question is, given a number of addresses, how do I determine which
> one is the one which other computers can use to reach the enet host of this
> machine?

This question is generally not well-formed, as a given computer may be
connected to multiple "real" networks at once - wifi and ethernet, a
VPN, an IPV6 tunnel (although enet doesn't actually support IPv6),
etc.  Better to try all the addresses.


More information about the ENet-discuss mailing list