Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining IP Addresses
Message
De
04/07/2003 09:16:59
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00806912
Message ID:
00806933
Vues:
20
>Cetin,
>
>I have tried this in my program but it only gives me my IP adress all the time. The program is run from my machine:
>
>Neil.prg
>
>Lparameters lcFileName
>Local llReturn, lnFID
> llReturn = .F.
> If File("U:\Profile\User149\InSystem.dbf")
> lnFID = Fopen("U:\Profile\User149\InSystem.dbf", 11)
> If lnFID = -1
> llReturn = .T.
> MESSAGEBOX("User is in System")
> oWinSock = CreateObject("MSWinsock.Winsock")
> ? oWinSock.LocalIP
> Else
> =Fclose(lnFID)
> MESSAGEBOX("User is not in System")
> EndIf
> EndIf
>Return llReturn
>
>Now user 149 is on another machine so when I run this program it tells me that the user is in the system but returns my IP address and not the machine that has used this file. Any ideas?
>
>Many Thanks

It says LocalIP.
Why don't you run and log it from your main.prg code. Each running machine would log its own IP.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform