Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting the real IP
Message
De
18/09/2013 03:54:22
 
 
À
17/09/2013 14:25:47
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01583370
Message ID:
01583471
Vues:
73
This message has been marked as the solution to the initial question of the thread.
>>Not sure what you mean by 'primary' address. On my machine your code (or, at least, my Linq version of it) returns 4 IP4 addresses, two for wireless and two for Ethernet. Don't see any way to distinguish which one you might be looking for.....
>
>From the load balancing environment, several Web servers will respond to the same domain but will hit one single SQL Server database. For each hit, I need to know which Web server responded to the request. Before, without a load balancing, I didn't have a need to add a Hit.IPServer field. I only add a Hit.IP which indicates the IP of the user. But, now, I need the IP of the server. So far, it returns the proper IP. But, then again, if you say the condition was met for 4 addresses on your PC, then that condition does not resolve with accuracy what I am looking for.
>
>Do you have any idea on how to improve based on this additional information?

Can you not use System.Environment.MachineName instead?
Don't know much about Web Farms but if DNS is used then the IP address would not reliably identify a specific machine anyway....
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform