Multiple Clients to One Server - WeOnlyDo Discussion board

Multiple Clients to One Server (General questions)

by Silverio, Monday, February 22, 2010, 16:58 (5387 days ago)

Dear WOD,
I've a question to submit you.

I have a main computer (QRC = QEM Remote Controller) which work like server listening a TCP/IP port (eg: 1080) and many remote clients (A, B, C, ...) which work like clients to this server.

The QRC IP is static so I always know it and I can access to its ports.

I know that I can access directly to QRC using normal TCP/IP connection but I would like to use VPN keeping so one unique way to comunicate with QRC, which also contains the MEDIATOR for my remote connections.

I know that using mediator I can connect remote A with B so they can use a VPN to exchange data, but can I connect in VPN more remote to an unique server ?

To simplify my question:

QRC (PC in UK) start to listening on www.q-move.eu:8000

A (PC in ITALY) start to listening on port 1023 (for example)
A try to connect to www.q-move.eu:8000
A is connected to QCR

B (PC in JAPAN) start to listening on port 20102 (for example)
B try connect to www.q-move.eu:8000
B NEVER connect with QCR and stay in sospension........

If there is a way to connect A & B to QRC then I try to add a tunneling channel whre A and B listening a port (1080) which is forwarded to 1080 of QRC in which I have a service server which listen port 1080 and do my job for A & B clients.

Thank you for suggestions

Re: Multiple Clients to One Server

by wodDamir, Monday, February 22, 2010, 17:12 (5387 days ago) @ Silverio

Silverio,

It doesn't work that way. Please have in mind that wodVPN is a peer-to-peer component (client only). So in order to accomplish this, you need to create another instance for each incoming client.

I.e.:

In your example we have 3 PC's. Client A (let's call it Server A), Client B, and Client C.

Server A:
- we need two instances of wodVPN (wodVPN1, wodVPN2)
- wodVPN1 starts listening on port 62001
- wodVPN2 starts listening on port 62002

Client B:
- start listening on any port
- connect to A: 62001

Client C:
- start listening on any port
- connect to A: 62002

and so on for each of the next clients.

What happens in your case is that Server A is already connected to Client B, and is no longer listening for incoming connections. That's why you start another instance, and start listening again.

Hope this helps.

Regards,
Damba

Re: Multiple Clients to One Server

by Silverio, Monday, February 22, 2010, 17:18 (5387 days ago) @ wodDamir

Thank you,
now all is more clear.

Re: Multiple Clients to One Server

by GPL, Thursday, April 29, 2010, 11:26 (5321 days ago) @ Silverio

In your example we have 3 PC's. Client A (let's call it Server A), Client B, and Client C.

Server A:
- we need two instances of wodVPN (wodVPN1, wodVPN2)
- wodVPN1 starts listening on port 62001
- wodVPN2 starts listening on port 62002

Client B:
- start listening on any port
- connect to A: 62001

Client C:
- start listening on any port
- connect to A: 62002

and so on for each of the next clients.

Thanks for the desription, but it's not clear for me.

Can I do the following, if I use a mediator?

Server A:
- we need two instances of wodVPN (wodVPN1, wodVPN2)
- wodVPN1
-- MyID:001
-- RemoteID: 101
- wodVPN2
-- MyID: 002
-- RemoteID: 102
- IP-Address of the virtual Adapter: 192.168.0.1

Client B:
- connect to Server A by Mediator
- MyID: 101
- RemoteID: 001
- IP-Address of the virt. Adapter: 192.168.0.2

Client C:
- connect to Server A by Mediator
- MyID: 102
- RemoteID: 002
- IP-Address of the virt. Adapter: 192.168.0.3

If I do it in this way, and all Clients are connected, can...
- Client B connect to Server A by IP 192.168.0.1?
- Client C connect to Server A by IP 192.168.0.1?
- Client C connect to Client B by IP 192.168.0.2?
- Client B connect to Client C by IP 192.168.0.3?

Is this possible?

Sorry, perhaps a silly question, but I try to understand it...

Re: Multiple Clients to One Server

by wodDamir, Thursday, April 29, 2010, 11:32 (5321 days ago) @ GPL

Hi,

If I do it in this way, and all Clients are connected, can...
- Client B connect to Server A by IP 192.168.0.1?
- Client C connect to Server A by IP 192.168.0.1?
- Client C connect to Client B by IP 192.168.0.2?
- Client B connect to Client C by IP 192.168.0.3?

The answer to these questions would be YES to first two, since Server A is connected to each peer.

However, the answer would be NO to the last two questions, since Client B and Client C aren't connected (no redirection is done between them). You would need to connect Client B and Client C.

Regards,
Damba

Re: Multiple Clients to One Server

by GPL, Thursday, April 29, 2010, 11:39 (5321 days ago) @ wodDamir

Hi,

If I do it in this way, and all Clients are connected, can...
- Client B connect to Server A by IP 192.168.0.1?
- Client C connect to Server A by IP 192.168.0.1?
- Client C connect to Client B by IP 192.168.0.2?
- Client B connect to Client C by IP 192.168.0.3?

The answer to these questions would be YES to first two, since Server A is connected to each peer.

However, the answer would be NO to the last two questions, since Client B and Client C aren't connected (no redirection is done between them). You would need to connect Client B and Client C.

Regards,
Damba


Ok, another question:

In my exaple: Can both instances for wodvpn on Server A have the same MyID? I think no, or i'm wrong?

Re: Multiple Clients to One Server

by wodDamir, Thursday, April 29, 2010, 12:49 (5321 days ago) @ GPL

Hi,

I don't see why you couldn't set them both to same values. They are completely different instances.

However, why don't you try dynamically creating instances, such as once first one is connected, you create a new one, etc...

Regards,
Damba