Logo Search packages:      
Sourcecode: libupnp4 version File versions  Download package

EXPORT_SPEC char* UpnpGetServerIpAddress (  ) 

Returns the local IPv4 listening ip address.

If NULL is used as the IPv4 address in UpnpInit, then this function can be used to retrieve the actual interface address on which device is running.

  • On success: The IPv4 address on which an internal server is listening for UPnP related requests.
  • On error: NULL is returned if UpnpInit has not succeeded.

Definition at line 404 of file upnpapi.c.

References gIF_IPV4, and UpnpSdkInit.

      if (UpnpSdkInit != 1) {
            return NULL;

      return gIF_IPV4;

Generated by  Doxygen 1.6.0   Back to index