adap / flower

Flower: A Friendly Federated AI Framework
https://flower.ai
Apache License 2.0
5.02k stars 862 forks source link

How to set “”server_address” (IP) between Client and server in different networks device?(i.e., not in LAN) #1507

Open KawhiHeisenberg631 opened 1 year ago

KawhiHeisenberg631 commented 1 year ago

What is your question?

When I set the server and clients to be in a different network, i.e. not in LAN, the codes reported errors. Server: image Server IPv4 address: 10.69.70.247

Client: image Client IPv4 address: 10.188.141.42

danieljanes commented 1 year ago

@KawhiHeisenberg631 could you provide more details about the setup you're trying to run? What do you mean by "not in LAN"?

XKingham commented 1 year ago

Maybe his "Not in LAN" means they are not in the same LAN, like the laptop is in the "LAN1" but the raspberry pi is in the "LAN2". They can't communicate with each other easily.

adarsh-nl commented 3 months ago

Is there a solution for this issue?

Description: I'm encountering a problem with the Flower framework when attempting to connect the server and clients on different networks. The connection either times out or fails to establish. Below are the details of the issue:

Steps to Reproduce:

Set up a Flower server on Network A. Attempt to connect a client from Network B. Observe the connection failure or timeout.

Expected Behavior: The client should successfully connect to the server even when they are on different networks.

Actual Behavior: The connection fails to establish, resulting in timeouts or other errors as mentioned in this issue.

But there is no issue when both the server and clients are connected to the same network A.