Results 1 to 2 of 2
  1. #1
    Beattie282 is offline Member
    Join Date
    Mar 2012
    Rep Power

    Question Any one know how to connect two clients via a server then pass the connection off.

    Hello peeps,

    my question is based upon a chat application like msn, msn used to have a problem with people beeing able to pull the ip from the person you were talking to. this lead to alot of webcam hacks and such.

    basically i want the server to handle the users ip's and setup a socket between the two IP's but i dont want the data going through the server to help with server load

    I want it this way to
    1. help with server load
    2. prevent ip hacking such as webcam hacks

    is this even possible?

    the only other option i can think of is,
    store a encrypted ip on server and have the client pull the ip when connecting to another user.

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Eastern Florida
    Rep Power

    Default Re: Any one know how to connect two clients via a server then pass the connection off

    If you want the two clients to have a peer to peer connection, have one be a "server" and the other a "client". Have the "server" use a ServerSocket and have the client connect to the server. The client would need the "server"'s IP address.
    If you don't understand my response, don't ignore it, ask a question.

Similar Threads

  1. how to connect a server to multiple clients
    By yontan8888 in forum Networking
    Replies: 1
    Last Post: 02-02-2011, 12:42 PM
  2. How to connect n clients to a server?
    By chyrl in forum Networking
    Replies: 21
    Last Post: 07-25-2010, 05:01 PM
  3. clients cannot connect to server on another machine
    By java_muggers in forum Networking
    Replies: 9
    Last Post: 06-13-2010, 12:22 PM
  4. how to connect a server to multiple clients?
    By azhar in forum Networking
    Replies: 15
    Last Post: 03-22-2010, 01:54 PM
  5. multi clients connect to udp server
    By bachma7 in forum Networking
    Replies: 5
    Last Post: 12-12-2008, 09:56 PM

Tags for this Thread

Posting Permissions

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