Re: associating subdomains to .net sockets



Thanks Jim, I will go and dig more on how to accomplish it
"Jim Hughes" <NOSPAMJ3033@xxxxxxxxxxx> wrote in message
news:egiLMonCGHA.3784@xxxxxxxxxxxxxxxxxxxxxxx
> 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" <radiax@xxxxxxxxxxx> wrote in message
> news:aKadnRMikaj-7S3enZ2dnUVZ_sqdnZ2d@xxxxxxxxxxxxxx
> > when i say shared i meant that the box has only one ipaddress and all
> > subdomains share that ip.
> > "Vadym Stetsyak" <vadym_s@xxxxxxx> wrote in message
> > news:#jAsmjkCGHA.516@xxxxxxxxxxxxxxxxxxxxxxx
> >> 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" <radiax@xxxxxxxxxxx> wrote in message
> >> news:9qOdndgpXttkczLenZ2dnUVZ_tOdnZ2d@xxxxxxxxxxxxxx
> >> > 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
> >> >
> >> >
> >>
> >>
> >
> >
>
>


.



Relevant Pages

  • Re: associating subdomains to .net sockets
    ... using a "Host Header" tag in the HTTP headers. ... Header sent by the client. ... >>> but the problem is the ip address is shared among subdomains (limited ...
    (microsoft.public.dotnet.general)
  • Host Headers after Migration - Help!!!
    ... then deleted the content DB that was created with the new Web App. ... I created the site with the URL/Host header of http://new.domain.com. ... After Adding the Content DB with the Root Site from the WSS2 server, ... URL of a host header site. ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: ad else is wrong ????
    ... Okay, I headed after the error - and after some reading, moved the entire ... ASP portion into the which took care of these problems. ... > Header Error ... > The HTTP headers are already written to the client browser. ...
    (microsoft.public.scripting.vbscript)
  • Re: AxShDocVw.AxWebBrowser.Navigate and object headers
    ... Http headers are just string name/value pairs. ... If you can serialize ... header from the Request, or the body, etc. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: XmlHttpRequest not loading latest version of xml
    ... >>> Sending proper HTTP headers is good also, but the browser may choose to ... sending identifying HTTPs header _and_ change the URI would not ... > That doesn't mean the browser is going to follow that advice. ... You set a header, you hope the browser honors it and some don't. ...
    (comp.lang.javascript)