473,749 Members | 2,597 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

To know the Server hostname which is currently served.

1 New Member
Hello,

I am working on asp and asp.net 1.1 with C#.

I am working with load balancer and providing feed to servers with some methods in my project. Sometimes when one server is busy because of heavy traffice its load is balanced by few connected servers and this time these servers receives data sent by different users.

Now my question is:

How can I get server information (like hostname, IP Adress etc.) which is recieving the data at this moment.
Thanks in advance!

Regds,
Sandeep
Aug 11 '08 #1
1 1087
RedSon
5,000 Recognized Expert Expert
The IP address you can get from the connection information or the socket. I think the Socket class has some methods that let you get info about it. As for the host name you need access to a DNS server to retrieve that.
Aug 11 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
6062
by: Steverino | last post by:
Hi, I'm currently trying to learn DB2. I have the following version below installed on my server machine on my little LAN. However when I try to connect to it from my client machine, I receive the following error: CLI0621E Unsupported JDBC server configuration. Everything I've read on the net though pertains to a Unix based setup
9
3177
by: jab | last post by:
Je veux lier (join) une table qui se trouve dans une database avec une qui se trouve dans une autre database. Les 2 databases sont sur le même serveur en l'occurence DB2/NT 7.2.9. J'ai créé un wrapper avec le control center (j'ai utilisé DRDA) et ensuite j'ai voulu créé le serveur mais avec le wizard, il ne me présente pas mes tables ! J'ai donc essayé en ligne de commande. J'ai essayé la commande suivante: CREATE SERVER TEST TYPE...
14
2792
by: jojoba | last post by:
Hi, I hope this post is ok for this group. Here's my deal: I have two computers on my LAN at home. One desktop. One laptop. Both computers are wireless enabled (and wired enabled too). I have running a fairly simple HTTP server (written in python) that i
5
5093
by: smatta | last post by:
I have just installed MySql version 5.0-18 on Red Hat Fedora Core 4. It is running but I cant connect to it using MySql Query Browser running on my pc. >From my pc, I can telnet to the sql server / port. I get back a garbled message: 5.0.18-standard§}WxyuadT,☻V6F?J5i1YMT= Should this be garbled ? or is there a problem ?
1
2582
by: spride | last post by:
Relatively new with PHP, so forgive me if this is a trivial question. I have a site hosted with PHP. I'm thinking of getting another hostname and alias it to this host. What I'd then like to do is have a PHP file (i.e., index.php) that reads a variable from the request that tells me which hostname is being served. I can then change the title and whatnot of the returning HTML, depending on which hostname was used. For example: <?php...
2
2410
by: Ultrak The DBA | last post by:
I would like to connect to a remote server, which I have already catalogued, and get the os and db2level information. I just realized that even though I connect to the other server my '!hostname' and '! db2level' commands are giving me the data for the server I am currently telneted into. Does anyone have a suggestion? Thank you,
4
6597
by: Patrick | last post by:
Hello, I'm currently trying the OpenSSL Library, but I got some problems. I want to create a server and client application that communicate through the OpenSSL API, but this code doesn't work. I tried to understand the error messages but for me they aren't useful. And now I'm here and hope that somebody has experience and can tell me the error. This is the Code for the server: #define _CRT_SECURE_NO_DEPRECATE
2
5814
by: Flic | last post by:
Hi, Please excuse the elementry nature of this query - I'm new to web services. I created a webservice in VB.NET (studio 2005 fwk 2.0.5..) which is hosted on an external server. Then I created a VB6 program which uses the webservice and it works just fine. The VB6 code looks like this: Dim clnt As New SoapClient30
3
1606
by: Joh | last post by:
I'd like to test a server application and a client application from the same computer. Currently if I let the client try to connect to my IPv4 adress provided by my router in this case 192.168.1.2 or my "external" IP provided by my ISP the tcplistener in the Server class wont accept the connection. Can I do this in another way and make it work? Server application source: Imports System.Net.Sockets
0
8833
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9568
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9389
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8257
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6079
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4709
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4881
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3320
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2794
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.