473,659 Members | 2,666 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

associating subdomains to .net sockets

Is there a way to associate or bind a subdomain to a tcp sockets under .net
framework (vb.net / c#). I know ip address can be used when using sockets,
but the problem is the ip address is shared among subdomains (limited ips
supply). Iam looking for possible way to use subdomain.domai n.com instead of
ip address. Any inputs??
thanks
Dec 26 '05 #1
4 2034
What do you mean by "shared"?

you can use "subdomain.doma in.com" but then in order to do any network i/o
you will
have to query your DNS server for the server ip address. ( because sockets
work only with ip addresses )

to obtain needed ip address

Dns.GetHostByNa me("subdomain.d omain.com"); ( .NET 1.1 )
or Dns.GetHostEntr y("subdomain.do main.com"); ( .NET 2.0 )

--
Vadym Stetsyak aka Vadmyst
http://vadmyst.blogspot.com

"radiax" <ra****@comcast .net> wrote in message
news:9q******** *************** *******@comcast .com...
Is there a way to associate or bind a subdomain to a tcp sockets under
.net
framework (vb.net / c#). I know ip address can be used when using sockets,
but the problem is the ip address is shared among subdomains (limited ips
supply). Iam looking for possible way to use subdomain.domai n.com instead
of
ip address. Any inputs??
thanks

Dec 26 '05 #2
when i say shared i meant that the box has only one ipaddress and all
subdomains share that ip.
"Vadym Stetsyak" <va*****@ukr.ne t> wrote in message
news:#j******** *****@TK2MSFTNG P15.phx.gbl...
What do you mean by "shared"?

you can use "subdomain.doma in.com" but then in order to do any network i/o
you will
have to query your DNS server for the server ip address. ( because sockets
work only with ip addresses )

to obtain needed ip address

Dns.GetHostByNa me("subdomain.d omain.com"); ( .NET 1.1 )
or Dns.GetHostEntr y("subdomain.do main.com"); ( .NET 2.0 )

--
Vadym Stetsyak aka Vadmyst
http://vadmyst.blogspot.com

"radiax" <ra****@comcast .net> wrote in message
news:9q******** *************** *******@comcast .com...
Is there a way to associate or bind a subdomain to a tcp sockets under
.net
framework (vb.net / c#). I know ip address can be used when using sockets, but the problem is the ip address is shared among subdomains (limited ips supply). Iam looking for possible way to use subdomain.domai n.com instead of
ip address. Any inputs??
thanks


Dec 26 '05 #3
With HTTP, subdomains/multiple hostnames for same IP address are enabled by
using a "Host Header" tag in the HTTP headers. That allows ONE service
(W3SVC) to respond differently to browser requests depending on the Host
Header sent by the client. All of the requests go to the same IP address on
the same port (80).

You would need to incorporate some similar mechanism in the protocol you use
for the service that is listening on service port on the shared IP address.
"radiax" <ra****@comcast .net> wrote in message
news:aK******** *************** *******@comcast .com...
when i say shared i meant that the box has only one ipaddress and all
subdomains share that ip.
"Vadym Stetsyak" <va*****@ukr.ne t> wrote in message
news:#j******** *****@TK2MSFTNG P15.phx.gbl...
What do you mean by "shared"?

you can use "subdomain.doma in.com" but then in order to do any network
i/o
you will
have to query your DNS server for the server ip address. ( because
sockets
work only with ip addresses )

to obtain needed ip address

Dns.GetHostByNa me("subdomain.d omain.com"); ( .NET 1.1 )
or Dns.GetHostEntr y("subdomain.do main.com"); ( .NET 2.0 )

--
Vadym Stetsyak aka Vadmyst
http://vadmyst.blogspot.com

"radiax" <ra****@comcast .net> wrote in message
news:9q******** *************** *******@comcast .com...
> Is there a way to associate or bind a subdomain to a tcp sockets under
> .net
> framework (vb.net / c#). I know ip address can be used when using sockets, > but the problem is the ip address is shared among subdomains (limited ips > supply). Iam looking for possible way to use subdomain.domai n.com instead > of
> ip address. Any inputs??
> thanks
>
>



Dec 27 '05 #4
Thanks Jim, I will go and dig more on how to accomplish it
"Jim Hughes" <NO*********@Ho tmail.com> wrote in message
news:eg******** ******@TK2MSFTN GP15.phx.gbl...
With HTTP, subdomains/multiple hostnames for same IP address are enabled by using a "Host Header" tag in the HTTP headers. That allows ONE service
(W3SVC) to respond differently to browser requests depending on the Host
Header sent by the client. All of the requests go to the same IP address on the same port (80).

You would need to incorporate some similar mechanism in the protocol you use for the service that is listening on service port on the shared IP address.

"radiax" <ra****@comcast .net> wrote in message
news:aK******** *************** *******@comcast .com...
when i say shared i meant that the box has only one ipaddress and all
subdomains share that ip.
"Vadym Stetsyak" <va*****@ukr.ne t> wrote in message
news:#j******** *****@TK2MSFTNG P15.phx.gbl...
What do you mean by "shared"?

you can use "subdomain.doma in.com" but then in order to do any network
i/o
you will
have to query your DNS server for the server ip address. ( because
sockets
work only with ip addresses )

to obtain needed ip address

Dns.GetHostByNa me("subdomain.d omain.com"); ( .NET 1.1 )
or Dns.GetHostEntr y("subdomain.do main.com"); ( .NET 2.0 )

--
Vadym Stetsyak aka Vadmyst
http://vadmyst.blogspot.com

"radiax" <ra****@comcast .net> wrote in message
news:9q******** *************** *******@comcast .com...
> Is there a way to associate or bind a subdomain to a tcp sockets under > .net
> framework (vb.net / c#). I know ip address can be used when using

sockets,
> but the problem is the ip address is shared among subdomains (limited

ips
> supply). Iam looking for possible way to use subdomain.domai n.com

instead
> of
> ip address. Any inputs??
> thanks
>
>



Dec 27 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2239
by: steve | last post by:
Hi I am writing an application which ideally requires the creation of subdomains dynamically via asp. However I want all the subdomains to point to 1 asp file, which I wish to use to figure out which subdomain has been typed in the url and to process it appropriately. I was thinking of 2 possible approaches and I am a bit 'cloudly' about both:
0
1277
by: Michi Henning | last post by:
The C# doc lists all the available SocketOptionName enumerators (on the SocketOptionName help page), but there doesn't appear to be a list of which option goes with what socket option level. It would be nice to have such a list. (Without it, I have to keep switching back to the Win32 API doc, which provides such a list.) From the code example on the SocketOptionLevel help page, I can see that SocketOptionName.SendTimeout goes with...
3
1777
by: craigkenisston | last post by:
In an application I'm developing I will be using subdomains in the main website to hold some sections of the sites. There will be many serverside generated links that will point to this subdomains. I already have subdomains in a preproduction server and it works fine then, but how do I do that here in my development machine ?? I have WindowsXP SP2, but I don't see anyplace where I can create subdomains, since everything are actually...
2
2745
by: craigkenisston | last post by:
Hi, I create a one day ticket in my authentication code like this : private void btnLogin_Click(object sender, System.EventArgs e) { string _userId = txtUserId.Text; string _password = txtPassword.Text;
1
5648
by: Hans Kesting | last post by:
Hi, Is it possible to share sessions between subdomains? Say: the user logs in at www.company.com, and is redirected to my.company.com. This is a different url for the same application. Can I keep the session (so I still know WHO has logged in)? The problem (as I see it) is the session-cookie. If that has a domain of "www.company.com", it will not be transferred to "my.company.com".
8
4302
by: Kenny Lai | last post by:
hey, Is there a way to communicate between iframes on different subdomains? e.g. from one.dot.com to two.dot.com? there is a security access restriction passing javascript commands between subdomains that we've run into. -Kenny
1
1723
by: asger_gronnow | last post by:
Hi I'm having trouble associating file types with my app. Associating a file type works as long as the file type is already associated with another program but if the file type doesn't exist already, it isn't associated. So my question is: how do I associate a file type that isn't registered already? How can I register this new file type if that's what I'll have to do before associating it. I'm programming in Win32 using the Dev-Cpp...
9
7793
by: Josh | last post by:
I run a Joomla website and am familiar with php in some but not all aspects. Currently I am trying to find some solutions related to session handling. Am I correct in saying that "login" is kept in sessions? I can see active sessions in my mysql database, but is that the only place this information is stored? Sessions and cookies I know are related also, but how specifically (session info stored in cookies?)? Right now, when users...
3
2957
by: Jonathan Wood | last post by:
Perhaps someone who understand Web hosting can offer some insight into this. I have several sites hosted at http://www.crystaltech.com. There were highly recommended and seem pretty good. But this weekend I tried to create some subdomains. For example, subdomain1.domain.com and subdomain2.domain.com. While Crystal Tech supports this, subdomains must point to an IP address. Therefore, it is not possible to point the subdomain to a...
0
8427
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
8523
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8626
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7355
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...
1
6178
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5649
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
4175
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...
1
2749
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
1975
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.