aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: filtered ips  (Read 3256 times)

sergiogg

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
filtered ips
« on: January 14, 2005, 04:58:05 PM »

hi

i'm sorry about my english, but I think, that's the best way.

i've been using amule many time, and i wanna request a new feature.

that's an option to reject tcp conections thru a filtered port

in this way people with this "problem", could download (with lowid), but ...

thanks, bye
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: filtered ips
« Reply #1 on: January 14, 2005, 07:27:39 PM »

Please elaborate.
Logged

sergiogg

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
Re: filtered ips
« Reply #2 on: January 16, 2005, 01:22:29 PM »

ok (sorry about my english again)

for example, the most common ports, 4662 and 4661 are filtered in some countries, because of legal problems with p2p or because of the problems with de bw of the ips.

note: in a filtered port, you can estabilish a conection, but the router sometimes discard packets, and you loose these conections because of timeout. and obviously you can't upload/download nothing, or only a bit.

it would be ok an option to add ports manually one time you start the program (for example in preferences), not to implement directly in the code (this is my case  ;() with an "if" saying that conections with servers or clients thru these ports are rejected.

greetings
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: filtered ips
« Reply #3 on: January 16, 2005, 01:35:29 PM »

Ah. I see. However I don't understand why you simply don't just specify a new set of ports in the preferences. Shouldn't that accomplish the same thing?
Logged

sergiogg

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
Re: filtered ips
« Reply #4 on: January 16, 2005, 02:37:22 PM »

hi again

yes, i can specify a new port in prefereces, but these are MY ports, the problem is the ports of the others (clients and servers). i dont wanna conect servers with  4661 and 4662 and i dont wanna conect clients with theses ports ...

mi code changes (basically adds) afects to this functions ...

BaseClient.cpp --> CUpDownClient::TryToConnect
(dont conect with a client with filtered ports)

PartFile.cpp --> CPartFile::AddSources
(reject conections with a server with filtered ports)

PartFile.cpp --> CPartFile::AddClientSources
(reject sources with a client with filtered ports)

ServerSocket.cpp --> CServerSocket::ConnectToServer
(dont conect to servers with filtered ports)

but i have some doubts, becase i program in c (only a little) but, not in wx (perhaps with time ...)
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: filtered ips
« Reply #5 on: January 16, 2005, 03:28:19 PM »

Oh, sorry, I misunderstood you then. I thought you were talking about incoming connections (connections from other clients to your port 4662), not the other way around.
Logged