473,386 Members | 1,804 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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.domain.com instead of
ip address. Any inputs??
thanks
Dec 26 '05 #1
4 2022
What do you mean by "shared"?

you can use "subdomain.domain.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.GetHostByName("subdomain.domain.com"); ( .NET 1.1 )
or Dns.GetHostEntry("subdomain.domain.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.domain.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.net> wrote in message
news:#j*************@TK2MSFTNGP15.phx.gbl...
What do you mean by "shared"?

you can use "subdomain.domain.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.GetHostByName("subdomain.domain.com"); ( .NET 1.1 )
or Dns.GetHostEntry("subdomain.domain.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.domain.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.net> wrote in message
news:#j*************@TK2MSFTNGP15.phx.gbl...
What do you mean by "shared"?

you can use "subdomain.domain.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.GetHostByName("subdomain.domain.com"); ( .NET 1.1 )
or Dns.GetHostEntry("subdomain.domain.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.domain.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*********@Hotmail.com> wrote in message
news:eg**************@TK2MSFTNGP15.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.net> wrote in message
news:#j*************@TK2MSFTNGP15.phx.gbl...
What do you mean by "shared"?

you can use "subdomain.domain.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.GetHostByName("subdomain.domain.com"); ( .NET 1.1 )
or Dns.GetHostEntry("subdomain.domain.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.domain.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
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...
0
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...
3
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...
2
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 =...
1
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...
8
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...
1
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...
9
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...
3
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...

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.