Multple network support?

Use this forum to flesh out your feature request before you enter it in <a href="http://dcpp.net/bugzilla/">Bugzilla</a>.

Moderator: Moderators

Locked
McGreggor
Posts: 1
Joined: 2005-10-09 12:28

Multple network support?

Post by McGreggor » 2005-10-09 12:53

Is it possible to add a feature to support a client that connects to multiple hubs across multiple networks? I.E If a client wants to connect to a hub across the www, and then another across a wireless or vpn network?

I know its possible to set up and connect across two networks if your in passive mode, but really you need to be able to specifiy which active ip you want to set for each hub. I think this is a much needed feature as VPN p2p apps/messengers become more common, I wont advertise any but some are zero-config and easy to setup to give DC++ an extra level of security.

BSOD2600
Forum Moderator
Posts: 503
Joined: 2003-01-27 18:47
Location: USA
Contact:

Post by BSOD2600 » 2005-10-09 15:10

As of right now, it's not possible. Best thing you can do is use a mod client which lets you specify which NIC to use, then set up each client appropriately.

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-07 21:46
Location: .pa.us

Post by GargoyleMT » 2005-10-09 20:59

Changing your routing table is a simpler solution to your problem than adding a new feature to DC++.

Jove
Posts: 6
Joined: 2005-10-12 12:22

Post by Jove » 2005-10-12 12:28

Routing tables should work to get you logged in over the different NICs, but that doesn't allow you to be active. The client would have to figure out the IP seperatly for each hub.

A possible solution would be to store the local IP per hub and have a way to set it. Then the user could be active on any interface. (He would have to figure out the ip himself (or have a script do it) probably easiest to retrieve it from the hub)

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-07 21:46
Location: .pa.us

Post by GargoyleMT » 2005-10-13 02:32

Jove wrote:Routing tables should work to get you logged in over the different NICs, but that doesn't allow you to be active. The client would have to figure out the IP seperatly for each hub.
At one point, there was this change made:

Code: Select all

 -- 0.24 2003-03-11 --
* Local ip handling improved, so that a per-hub ip is used if nothing is entered in the active field (good for people who connect to local hubs or through different network cards)
If that's no longer valid, anyone can file a bug against it. I only have one NIC, so I can't test it out.

Asc3nti0n
Account Disabled Due to Policy
Posts: 15
Joined: 2003-01-24 21:42
Location: AUST
Contact:

Is there....

Post by Asc3nti0n » 2005-10-15 08:39

So, based on "improved local IP Handling"... is there not room in the protocol for user IP's to be sent to the client from the hub? but is that in the basic protocol or ADC?

/join [hub-address]
request to hub: Send me my IP - store as "hub_connection"
{hub sends IP}
request to local computer: What are the local interface IP's (surely there's a lookup for that in C)
{parse out all local IP's, would have to include loopback too} - store ass arr_localIPs
for each IP in "arr_localIP's"
IF("hub_connection" == "arr_localIPs"(x) Then set IP
Else Set Passive
done.

Now does that function pseudocode look worthy to the general populace? now, is that what's already there???

It would be nice to see in Settings "Use Auto IP detection" - who knows how to auto-detect if there's a SOCKS5 proxy server in use?? add that as a select statement?

just some random mental meandering for thought.
coz MacsRBest

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-07 21:46
Location: .pa.us

Re: Is there....

Post by GargoyleMT » 2005-10-15 09:17

Asc3nti0n wrote:So, based on "improved local IP Handling"... is there not room in the protocol for user IP's to be sent to the client from the hub? but is that in the basic protocol or ADC?
You mean for the hub to send the user's IP to them? Take a look at $UserIP. But it is an extension, and is not useful in this case.
Asc3nti0n wrote:surely there's a lookup for that in
Better yet, there's a lookup to see what your local IP is on a given TCP connection, which is what the change I quoted above actually did.
Asc3nti0n wrote:IF("hub_connection" == "arr_localIPs"(x) Then set IP
Else Set Passive
This has the effect of putting all users behind a NAT into passive mode, and as such isn't an improvement from the way DC++ does things. I'm not sure if I've mentioned it in this thread yet, but UPnP is the feature that's supposed to help most users get rid of their port-forwarding woes.

Locked