This content has been marked as final. Show 3 replies
Remember that the machine may have more than one IP (especially servers).
The attached gets all of them.
This is greate, it kind of work but how do I manipulate this information.
This is the error code I am getting trying to evaluate the IP result with a conditional value:
Complex object types cannot be converted to simple values.
The expression has requested a variable or an intermediate expression result as a simple value, however, the result cannot be converted to a simple value. Simple values are strings, numbers, boolean values, and date/time values. Queries, arrays, and COM objects are examples of complex values.
The most likely cause of the error is that you are trying to use a complex value as a simple one. For example, you might be trying to use a query variable in a <CFIF> tag. This was possible in ColdFusion 2.0 but creates an error in later versions.
<cfif IsDefined ("aHostIPs") and aHostIPs EQ "myLookingIP"> Test passed </cfif>
You would use:
<CFIF ListFind (ArrayToList (aHostIPs), "myLookingIP")>