Back to product page

LocalIP property


Holds local IP address of the interface.

Type

Unsigned integer.

Syntax

  • C++
unsigned int LocalIP;

Remarks

LocalIP property holds IP address of the adapter, if set. If DHCP is enabled on the adapter then LocalIP will have value 0. You must set local IP address of the adapter manually (through right-click on the adapter, and selecting Properties) before devP2P can use it correctly. Setting new value in LocalIP property *does not* change real IP address of the adapter.

When setting IP address of the adapter, make sure you also set its correct Netmask. IP/Netmask combination on local side should be in same subnet as remote peer's IP/Netmask combination. For example, you can set local IP to 192.168.1.1, and remote IP to 192.168.1.2, both having same netmask 255.255.255.0 .

Platforms

Windows
Mac OSX
Linux
BSD