![]() |
|
Register | FAQ | The Twelve Commandments | Members List | Calendar | Arcade | Find the Best VPN | Today's Posts | Search |
General Gnutella Development Discussion For general discussion about Gnutella development. |
![]() |
| LinkBack | Thread Tools | Display Modes |
| |||
![]() I understand how the P2P net works, quite well. But I have one stupid question. How do the computers connect to the net if they don't know IPs of those already connected. It is necessary to know some starting address or what? Thanx for your answers. |
| ||||
![]() How about host caches, http://www.gnutellaforums.com/showth...&threadid=5807 |
| |||
![]() Quote:
As for how you get connected your ISP assigns you an Ip adress and DNS to use. |
| |||
![]() Thanx Moak! That's what I wanted to know. So there are some host caches with fixed URLs. But... I am dreaming of a real P2P network which would not depend on any given server. If a servent wanted to join the network it might find the others by broadcasting a message until someone responses. Wouldn't it be possible? |
| ||||
![]() Hi, you're welcome. It mainly depends on what kind of broadcast you are thinking of (which protocoll, which OSI layer?). But whatever it is, it will usually work in your local LAN or network segment only! Your ISP (or router) makes sure broadcasts on a low layer are not routed to the internet, because wild broadcasts from many many hosts could easily collapse the internet. High broadcast traffic is also a problem inside gnutella (for known countermeasures on this layer/protocoll see TTL and superpeers/ultrapeers, pong caching etc). For example a known broadcast inside a LAN is used with Samba service (the famous file service), it broadcasts to find master servers and other file servers. Those broadcasts are usually send only to the same netwok segment, corrosponding to your TCP/IP network mask (see details in /etc/smb.conf). Actually host caches are the only slightly centralized structure inside Gnutella. There are some alternative ideas, e.g. an IRC channel where servants exchange IPs. Any more ideas known? PS: Sephir, the internet uses IPs. DNS translates internet hostnames to IPs, and reverse. It's a common service you need if working with hostnames (resolving to IPs). When being pure IP based there is no need to query a DNS server, the Gnutella protocoll itself is pure IP based (IPv4 yet). Last edited by Moak; December 26th, 2001 at 06:28 AM. |
| |||
![]() http://www.google.de/search?q=Winsock+hostname+IP gethostbyname() ....5th link is also in german language. |
| |||
![]() thx RTFM... but this is not the thing i was looking for... it gets an IP from an address... but looking at the google-keywords remembered me of a english website called VBIP (www.vbip.com) i visited a loooong time ago... there's is everything you (i) need... here's the article: http://www.vbip.com/winsock-api/geth...tbyaddr-01.asp it uses Declare Function gethostbyaddr Lib "ws2_32.dll" (addr As Long, ByVal addr_len As Long, ByVal addr_type As Long) As Long anyway... thx for your effort CU |
![]() |
| |
![]() | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Connecting Problem.."Quality:Connecting" | ChrisZ | Connection Problems | 6 | April 4th, 2009 04:15 PM |
Was Connecting, then not, now it does again??? | TheKelvinater | Connection Problems | 1 | July 24th, 2006 05:18 AM |
May sound like a dumb question....But.... (LW Basic to Pro changeover question) | TracyBee | Windows | 2 | June 15th, 2005 01:24 PM |
Connecting on Mac OSX | guest on a mac | Connection Problems | 1 | April 21st, 2005 06:59 PM |
connecting | roge1308 | General Gnutella / Gnutella Network Discussion | 4 | November 6th, 2004 09:25 AM |