Official eMule-Board: How To Know Dhtid From Ip? - Official eMule-Board

Jump to content


Page 1 of 1

How To Know Dhtid From Ip?

#1 User is offline   justgogo 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 7
  • Joined: 04-May 10

Posted 05 May 2010 - 12:39 PM

Known a dht id, it is easy to get the corresponding ip. However, I am thinking about how to get the dht id that corresponding to an ip.
now, I dont know how to. help

This post has been edited by justgogo: 05 May 2010 - 12:40 PM

0

#2 User is offline   Some Support 

  • Last eMule
  • PipPipPipPipPipPipPip
  • Group: Yes
  • Posts: 3,411
  • Joined: 27-June 03

Posted 05 May 2010 - 01:11 PM

It is a far shot, but you could call the CKademlia::FindNodeIDByIP() function.

#3 User is offline   justgogo 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 7
  • Joined: 04-May 10

Posted 06 May 2010 - 07:11 AM

View PostSome Support, on 05 May 2010 - 01:11 PM, said:

It is a far shot, but you could call the CKademlia::FindNodeIDByIP() function.


thanks very much, "some support". But there is still a problem in FindNOdeIDByIP().
While reading source codes, with your help, i tracked CKademlia::FindNodeIDByIP() function and get into the function "CKademliaUDPListener::FindNodeIDByIP(CKadClientSearcher* pRequester, uint32 dwIP, uint16 nTCPPort, uint16 nUDPPort)".
This function need the parameter "uint16 nUDPPort", but i only know IP address, how can i get the dhtID still?
help.

This post has been edited by justgogo: 06 May 2010 - 07:13 AM

0

#4 User is offline   Some Support 

  • Last eMule
  • PipPipPipPipPipPipPip
  • Group: Yes
  • Posts: 3,411
  • Joined: 27-June 03

Posted 06 May 2010 - 07:50 AM

If you don't have the port you cannot get the nodeid. A node ID is linked to IP+Port, after all its possible that one IP has multiple clients running and therefore multiple nodeids.
The only way to fetch them all would be trying all ports, which is considered an attack by most standards.

#5 User is offline   justgogo 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 7
  • Joined: 04-May 10

Posted 06 May 2010 - 01:48 PM

View PostSome Support, on 06 May 2010 - 07:50 AM, said:

If you don't have the port you cannot get the nodeid. A node ID is linked to IP+Port, after all its possible that one IP has multiple clients running and therefore multiple nodeids.
The only way to fetch them all would be trying all ports, which is considered an attack by most standards.

Thanks very much. So it is very hard to get dhtID from the IP, unless the port is known. :(

This post has been edited by justgogo: 06 May 2010 - 02:10 PM

0

#6 User is offline   Stulle 

  • [Enter Mod] Dev
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 5,727
  • Joined: 07-April 04

Posted 07 May 2010 - 08:00 AM

indeed but why would you want to do that anyway? O_o
I am an emule-web.de member and fan! Hate me or people will get suspicious about you! Ever wondered if it's all worth the trouble?

Posted Image

No, there will not be a new version of my mods. No, I do not want your PM. No, I am certain, use the board and quit sending PMs. No, I am not kidding, there will not be a new version of my mods just because of YOU asking for it!
0

#7 User is offline   justgogo 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 7
  • Joined: 04-May 10

Posted 09 May 2010 - 01:35 PM

View PostStulle, on 07 May 2010 - 08:00 AM, said:

indeed but why would you want to do that anyway? O_o

i am study p2p, and want to know for a dht system, if one can reversely search ID from IP.
0

  • Member Options

Page 1 of 1

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users