Getting IP Address of a user on a network 
Author Message
 Getting IP Address of a user on a network

I have somewhat of a problem, which I hope you can answer.
I have been asked to provide a script, which will make a
computer on the network beep. I have setup IIS so that I
will get the user name but the problem is that the IP
address changes from day to day.

So therefore how can I get the IP and make that person's
system beep whether they have IE up or not?

Windows2000-IIS5

This should be done through ASP if possible.



Mon, 18 Apr 2005 03:48:31 GMT  
 Getting IP Address of a user on a network
Try WMI.


Quote:
> I have somewhat of a problem, which I hope you can answer.
> I have been asked to provide a script, which will make a
> computer on the network beep. I have setup IIS so that I
> will get the user name but the problem is that the IP
> address changes from day to day.

> So therefore how can I get the IP and make that person's
> system beep whether they have IE up or not?

> Windows2000-IIS5

> This should be done through ASP if possible.



Mon, 18 Apr 2005 04:27:44 GMT  
 Getting IP Address of a user on a network
I had found some information on that and tried it, but it
did not work.  This is the script and the error received.
I know that the script is not what I want but can be
edited that I may use it to do what I want to do. So I
gest that will also be my next question :).

<% Response.Buffer = true %>
<%
    url = "www.espn.com"

    Set objWShell = CreateObject("WScript.Shell")
    Set objCmd = objWShell.Exec("ping " & url)
    strPResult = objCmd.StdOut.Readall()
    set objCmd = nothing: Set objWShell = nothing

    strStatus = "offline"
    if InStr(strPResult,"TTL=")>0 then strStatus
= "online"

    response.write url & " is " & strStatus
    response.write ".<br>" & replace
(strPResult,vbCrLf,"<br>")
%>

The ERROR:

Error Type:
Microsoft VBScript runtime (0x800A01B6)
Object doesn't support this property or
method: 'objWShell.Exec'
/newsite/test9.asp, line 6

Is there some thing that I have to setup in IIS or install
on the server?

Quote:
>-----Original Message-----
>Try WMI.



>> I have somewhat of a problem, which I hope you can
answer.
>> I have been asked to provide a script, which will make a
>> computer on the network beep. I have setup IIS so that I
>> will get the user name but the problem is that the IP
>> address changes from day to day.

>> So therefore how can I get the IP and make that person's
>> system beep whether they have IE up or not?

>> Windows2000-IIS5

>> This should be done through ASP if possible.

>.



Mon, 18 Apr 2005 22:26:44 GMT  
 Getting IP Address of a user on a network
Hi,

try to use ASPPing from
http://www.serverobjects.com/products.htm#free. It's a free
component...

Quote:

> I had found some information on that and tried it, but it
> did not work.  This is the script and the error received.
> I know that the script is not what I want but can be
> edited that I may use it to do what I want to do. So I
> gest that will also be my next question :).

> <% Response.Buffer = true %>
> <%
>     url = "www.espn.com"

>     Set objWShell = CreateObject("WScript.Shell")
>     Set objCmd = objWShell.Exec("ping " & url)
>     strPResult = objCmd.StdOut.Readall()
>     set objCmd = nothing: Set objWShell = nothing

>     strStatus = "offline"
>     if InStr(strPResult,"TTL=")>0 then strStatus
> = "online"

>     response.write url & " is " & strStatus
>     response.write ".<br>" & replace
> (strPResult,vbCrLf,"<br>")
> %>

> The ERROR:

> Error Type:
> Microsoft VBScript runtime (0x800A01B6)
> Object doesn't support this property or
> method: 'objWShell.Exec'
> /newsite/test9.asp, line 6

> Is there some thing that I have to setup in IIS or install
> on the server?

> >-----Original Message-----
> >Try WMI.



> >> I have somewhat of a problem, which I hope you can
>  answer.
> >> I have been asked to provide a script, which will make a
> >> computer on the network beep. I have setup IIS so that I
> >> will get the user name but the problem is that the IP
> >> address changes from day to day.

> >> So therefore how can I get the IP and make that person's
> >> system beep whether they have IE up or not?

> >> Windows2000-IIS5

> >> This should be done through ASP if possible.

> >.



Fri, 22 Apr 2005 19:57:01 GMT  
 Getting IP Address of a user on a network
hi,

you can use ASPPing from
http://www.serverobjects.com/products.htm#free. Its a free component
for asp + iis

Quote:

> I had found some information on that and tried it, but it
> did not work.  This is the script and the error received.
> I know that the script is not what I want but can be
> edited that I may use it to do what I want to do. So I
> gest that will also be my next question :).

> <% Response.Buffer = true %>
> <%
>     url = "www.espn.com"

>     Set objWShell = CreateObject("WScript.Shell")
>     Set objCmd = objWShell.Exec("ping " & url)
>     strPResult = objCmd.StdOut.Readall()
>     set objCmd = nothing: Set objWShell = nothing

>     strStatus = "offline"
>     if InStr(strPResult,"TTL=")>0 then strStatus
> = "online"

>     response.write url & " is " & strStatus
>     response.write ".<br>" & replace
> (strPResult,vbCrLf,"<br>")
> %>

> The ERROR:

> Error Type:
> Microsoft VBScript runtime (0x800A01B6)
> Object doesn't support this property or
> method: 'objWShell.Exec'
> /newsite/test9.asp, line 6

> Is there some thing that I have to setup in IIS or install
> on the server?

> >-----Original Message-----
> >Try WMI.



> >> I have somewhat of a problem, which I hope you can
>  answer.
> >> I have been asked to provide a script, which will make a
> >> computer on the network beep. I have setup IIS so that I
> >> will get the user name but the problem is that the IP
> >> address changes from day to day.

> >> So therefore how can I get the IP and make that person's
> >> system beep whether they have IE up or not?

> >> Windows2000-IIS5

> >> This should be done through ASP if possible.

> >.



Fri, 22 Apr 2005 20:00:36 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Getting IP address of user

2. Getting User name & IP address

3. Getting a users Ip address

4. Getting a users Ip address

5. Getting the users IP address...

6. Getting a users IP address

7. Network adapter question: how to put ip address and MAC addresses together

8. Getting the ip address based on the MAC Address

9. Getting a machine's MAC address given a NETBIOS machine name or IP address

10. Changing IP Address on Network Card

11. host network ip address

12. best way to extract network number from IP address

 

 
Powered by phpBB® Forum Software