CFOBJECT NAME=addr CLASS=java.net.InetAddress TYPE=java
ACTION=create
CFSET address=addr.getByName(#CGI.REMOTE_ADDR)
Then you have these methods:
http://java.sun.com/j2se/1.4.2/docs/api/java/net/InetAddress.html
-Original Message-
From: Orlini, Robert [mailto:[EMAIL PROTECTED]
Sent:
Ben wrote a few UDFs for just this thing. You can find them at
http://cflib.org
http://cflib.org/udf.cfm?ID=447
http://cflib.org/udf.cfm?ID=446
-Original Message-
From: Orlini, Robert [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 11, 2005 9:20 AM
To: CF-Talk
Subject: resolve a
does cgi.remote_addr not give you an ip on your system?
-Original Message-
From: Orlini, Robert [mailto:[EMAIL PROTECTED]
Sent: 11 October 2005 15:20
To: CF-Talk
Subject: resolve a hostname
Hello,
Is there anyway to create a CF script to resolve a user or hostname into an
IP address
Create an object from java.net.InetAddress and cfdump it. You will find
everything you need
cfobject class=java.net.InetAddress
type=java
action=create
name=inetaddrclass /
cfdump var=#inetaddrclass# /
Ps... the class name is case sensitive
4 matches
Mail list logo