Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pickup and format IP Address

Status
Not open for further replies.

sjnb

Technical User
Jun 13, 2001
4
GB
Hi all
I need to pickup and format an ip address that will be passed to another asp page can anybody help?

Sjnb
 
Where are you getting the IP address from and how do you want to format it?

You can use server.variables("Local_Addr") or server.variables("Remote_Addr") to get the IP from the server and client respectively.
 
The ip address will be a static ip off a large lan, the formating will involve hexing the ip and suffixing it with "-1"

Sjnb
 
Try something like:

function FormatIP(IP)
FormatIP = hex(replace(IP, ".", "")) & "-1"
end function

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top