Get IP Address of Autocad machine in WebAPI

divymital
Enthusiast

Get IP Address of Autocad machine in WebAPI

divymital
Enthusiast
Enthusiast

Hi,

 

I have a written a lisp and I am able to communicate with a web API with the required input parameters.

 

Now I need to log the IP Address hitting the Web API (developed in c#). When I hit API from Lisp I get a junk Ip Address like : fe80::ed5d:dda9:de33:8d3b%15 , However hitting the API using Advance Rest client from the same machine results a proper IP Address.

 

I am calling API as below :

 

(setq xml (vlax-create-object "MSXML2.XMLHTTP.3.0"))
(vlax-invoke-method xml 'open Method argCode :vlax-false) ;; argCode is API Uri
(vlax-invoke-method xml 'send)

0 Likes
Reply
370 Views
1 Reply
Reply (1)

divymital
Enthusiast
Enthusiast

Hi,

 

I realized that the IP address captured through Lisp call is IPv6 address, But from Advance rest client it captures IPv4 address.

 

Can you please why is this happenning and how can I get IPv4 address from Lisp call.

 

Regards,

Divya

0 Likes