Re: not what I'm after

From: Nick Malik (nickmalik_at_hotmail.nospam.com)
Date: 10/12/04


Date: Tue, 12 Oct 2004 14:36:25 GMT

Hi Tom,

Users A, B, and C have to be listening to a port to get a message over that
port. Either that, or the message lives in storage on another machine until
the User A goes to pick it up, which is not what I expect you are looking
for.

So User A has to make a port available.

If you want User B to be able to start a conversation with User A, then User
A has to pass some information to a common point where User B knows to go
look for it.
That information has to contain enough information to contact User A. This
usually means: the IP address of User A, the port to use, and the protocol
to use. Since the IP Address of User A may change fairly often, this data
has to be fresh.

You also have the problem of proxy servers. If User A and User B have a
proxy server between then, then the proxy server actually "owns" the IP
address of one of the players, and has to be counted on to relay the message
(something I wouldn't count on, if I were you).

Will you be using an established protocol or are you writing your own?

If you use an established protocol, you can take advantage of the support
for that protocol built in to some firewalls and proxy servers. However,
your app will conflict with other apps using the same protocol, especially
if that protocol is tied to a specific port. If you want to avoid
conflicts, best to use an established protocol over a different port, but
you lose the support from the firewalls. It's a tradeoff.

If you are willing to go with simple SOAP messages, which is what you imply
with your original post on using remoting, you get some advantages and some
disadvantages. I don't know if it will work on XP Home edition or Windows
95/98 (no web server)... that's the disadvantage. On the other hand,
there's a great deal of support in .NET for this kind of thing.

A good book to help you to understand the ins and outs of .Net Remoting is
"Advanced .NET Remoting" by Ingo Rammer. I strongly suggest that picking up
a copy of this book will give you the groundwork that you need to use .NET
Remoting for solving this problem. Certainly, .NET remoting isn't the only
way to solve this problem. If you decide to go with direct network
programming, then I don't have a good book recommendation off the top of my
head (others may), and I would suggest that you google on ".net network
programming" to find useful articles.

Good luck,
--- Nick

"Tom" <tomgaomail@optushome.com.au> wrote in message
news:416bd9c3$0$10351$afc38c87@news.optusnet.com.au...
> I think you don't understand the question.. I want to send msg from userA
to
> userB its got nothing to do with authetication...
>
> "Lee Alexander" <lee@NoSpamPlease_Digita.com> wrote in message
> news:u$fyLwEsEHA.1816@TK2MSFTNGP09.phx.gbl...
> > When I wrote one to play around with remoting (a while ago) I had on the
> > server a SignOn and SignOff method that the client would call passing as
> one
> > of the parameters the URL of the client. This URL was used by the server
> as
> > a way of identifying a client and sending messages to it. I used
> > authentication to get the user name of the user on that client but you
> could
> > just pass the user name into the SignIn method if you want. Any
subsequent
> > calls to the server from a client would pass this URL as a way of
> > identifying who was sending the message. I added some extra little bits
> like
> > discovery of the server using mutlicast messages so the user didn't have
> to
> > type in the server address.
> >
> > HTH
> >
> > Regards
> > Lee
> >
> > "Tom" <tomgaomail@optushome.com.au> wrote in message
> > news:416bb0bf$0$20128$afc38c87@news.optusnet.com.au...
> > > I am not looking for who the user is...
> > >
> > > and third party is not the response I'm looking for. I want to write
it
> > > myself and I need direction on this..
> > >
> > >
> > > "Lee Alexander" <lee@NoSpamPlease_Digita.com> wrote in message
> > > news:ekhpz2DsEHA.736@tk2msftngp13.phx.gbl...
> > > > If your server is running under IIS then you can make use of
> > > authentication
> > > > to find out who the user is. Otherwise you will have to either buy a
> > third
> > > > party library or write your own. Here is an article that might help
if
> > > your
> > > > not running under IIS.
> > > >
> > > >
> > >
> >
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/remsspi.asp
> > > >
> > > > Regards
> > > > Lee
> > > >
> > > > "Tom" <tomgaomail@optushome.com.au> wrote in message
> > > > news:416b91a5$0$29780$afc38c87@news.optusnet.com.au...
> > > > > hi,
> > > > >
> > > > > I'm trying to write a multi client chat app using remoting.
however
> > atm,
> > > > I'm
> > > > > stuck when a userA tries to send userB a msg... say there're
userA,
> > > userB
> > > > > and userC. on the server side how do I know which user is userB
when
> I
> > > > > recieve message from userB ?
> > > > >
> > > > > what should the process be. I know I need to store a reference of
> the
> > > > > clients somehow on the server. but how can this be done ?
> > > > >
> > > > > thanks
> > > > > Tom
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Relevant Pages

  • Re: "Opening ports"
    ... When filtering log on port 5656, ... Create Protocol: ... Understanding the ISA 2004 Access Rule Processing ... Microsoft Internet Security & Acceleration Server: ...
    (microsoft.public.isa)
  • Re: SBS2003, Terminal server and Mobile 6
    ... RRAS as Firewall) and SBS 2K3 Premium: ... in order for a custom protocol to be considered a "Server" ... In the ''Policy Elements'' branch of ISA server mmc, ... Next...Enter the destination port number for the custom protocol being ...
    (microsoft.public.windows.server.sbs)
  • Re: Remote access from Internet
    ... An initial proposal was to implement the entire user interface as a Java applet and use a simple back-end protocol to move data. ... The user who desires access connects to relay server with a browser and logs in. ... then you probably need to block all ports *except* for one that you actively manage - ideally by something strong like SSH. ... As a side note on ssh security, there is no need to put ssh on port 22. ...
    (comp.arch.embedded)
  • RE: Port Forwarding
    ... RRAS as Firewall) and SBS 2K3 Premium: ... in order for a custom protocol to be considered a "Server" ... In the ''Policy Elements'' branch of ISA server mmc, ... For example, for Terminal Server, the port number would be 3389. ...
    (microsoft.public.windows.server.sbs)
  • Remoting - freie tcp Ports finden
    ... Ich habe eine Reihe von .NET Remoting Server. ... Server den Port "fest" konfiguriert (via AppConfig). ...
    (microsoft.public.de.german.entwickler.dotnet.vb)