Results 1 to 4 of 4

Thread: [RESOLVED] Creating a central server for all users to connect through

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Oct 2000
    Posts
    1,463

    Resolved [RESOLVED] Creating a central server for all users to connect through

    Hi,

    The way I understand some of the IM programs work is they have a central server where everyone connects to. And then when you want to IM someone, the central server connects the two people directly. This is what I do not know how to do. Is this how its done? I only know how to connect to to another computer directly and then you have to deal with port forwarding, etc. if your behind a router.

    If you have a central server for the service, the connections to it are made outward from PCs so no worry about the routers. And if I could then create a connection between them at the main system, that would be awsome.

    Any tips or ideas on how to do this?

    Thanks

  2. #2

    Thread Starter
    Frenzied Member
    Join Date
    Oct 2000
    Posts
    1,463

    Re: Creating a central server for all users to connect through

    Actually is this what a daemon server would do?

  3. #3
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: Creating a central server for all users to connect through

    With most IM services all traffic goes through a server. Usually if one or both people are behind NAT devices the connection process gives up on directly connecting them and settles for relaying traffic.

    In some cases there are NAT tunneling schemes that might be employed to permit direct connections even with NAT in place. Not all tunneling schemes work with all NAT devices though.

    I don't think any of this is practical in VB though, except for the full-time-relay option. Opening such tunnels requires some low-level work that you can't do using the Winsock control, and anyway it isn't reliable enough to be worthwhile for most purposes.

  4. #4
    Fanatic Member
    Join Date
    Oct 2004
    Posts
    751

    Re: Creating a central server for all users to connect through

    The server does not "directly connect" them (though this is a feature in AIM that I will not get into).
    All messages are sent to the server and relayed by it to both clients.
    My Projects: [ Instant Messagener Client/Server ] [ VBPictochat ]

    My Sites:
    [ Datanethost ]
    [ Helpdesk ]

    Remember if my post was helpful then Rate This Post.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width