View Single Post
Old 03-11-2019, 11:24 AM
GuitarDude GuitarDude is offline
Registered User
Join Date: Mar 2019
Posts: 8
Thumbs up Web Interface Script

Originally Posted by berdmann View Post
Hi GuitarDude,

You can get the IP address of the connected session using the RemoteAddress property of the Session object from SecureCRT's scripting API.

For Example:

# $language = "VBScript"
# $interface = "1.0"

strRemoteAddress = crt.Session.RemoteAddress

Set shell = CreateObject("WScript.Shell")
shell.Run("http://" & strRemoteAddress)
Does that work for you?

For more information about SecureCRT's scripting API please refer to the Help.

This does work for me. Thanks for the help. I did change a few things like https and adding the port number.