|
-
Jun 26th, 2001, 02:46 PM
#1
Thread Starter
Junior Member
Getting an IP Address using VBScript
How would you get an IP Address using VBScript? Thanks
-
Jun 26th, 2001, 03:00 PM
#2
Lively Member
Request.Servervariables("REMOTE_HOST")
This is server-side
-
Jun 26th, 2001, 03:19 PM
#3
Thread Starter
Junior Member
vbscript - ip address
greetings,
im 18 and work at apc, and im in charge of the lan here at one of the buildings and also head of the web department. is there a way using vbscript to get the ip address a computer when the browser is loaded? that way all the clients that go to a link.. example..
http://intranet/network/ip_used
that way it will write the ip address of the computer to a file so that a program that i made will be able to search through that text file and return the status of all the ipaddress and see which ones are used. the program is called Verify IP and is loacated here...
www.geocities.com/mountainpics/downloads
thanks so much. all i need is the code to get the ip address when the browser is loaded up. thanks!
-
Jun 26th, 2001, 03:56 PM
#4
Thread Starter
Junior Member
sorry
im sorry, but the download is unavaiable... i cannot seem to upload the cab files...
-
Jun 26th, 2001, 04:08 PM
#5
Frenzied Member
Originally posted by CreoN
Request.Servervariables("REMOTE_HOST")
This is server-side
And this didn't work?
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
-
Jun 26th, 2001, 09:45 PM
#6
Thread Starter
Junior Member
error
it throws up an error at reguest. i using the vbscript for client side.
-
Jun 27th, 2001, 08:01 AM
#7
Frenzied Member
Yes, I would hope that you couldn't get it client-side for the reasons that Josh pointed out. My machines IP address is not its broadcast address. But... try this.
And forgive me, I never use VBScript for client-side scripting, so you will have to translate from JavaScript to VBScript.
Code:
<html>
<head></head>
<body>
<script language='JavaScript'>
var clientIP = <%=Request.ServerVariables("REMOTE_ADDR")%>;
</script>
</body>
</html>
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
-
Jun 27th, 2001, 11:15 AM
#8
Thread Starter
Junior Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|