Gnutella Forums  

Go Back   Gnutella Forums > Gnutella News and Gnutelliums Forums > General Gnutella Development Discussion
Register FAQ The Twelve Commandments Members List Calendar Arcade Find the Best VPN Today's Posts

General Gnutella Development Discussion For general discussion about Gnutella development.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old December 25th, 2001
Novicius
 
Join Date: December 25th, 2001
Posts: 2
Darkk is flying high
Default A question about connecting

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.
Reply With Quote
  #2 (permalink)  
Old December 25th, 2001
Moak's Avatar
Guest
 
Join Date: September 7th, 2001
Location: Europe
Posts: 816
Moak is flying high
Default

How about host caches, http://www.gnutellaforums.com/showth...&threadid=5807
Reply With Quote
  #3 (permalink)  
Old December 25th, 2001
Gnutella Admirer
 
Join Date: May 28th, 2001
Posts: 56
Sephiroth is flying high
Default Re: A question about connecting

Quote:
Originally posted by Darkk
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.
The internet uses DNS servers. They are servers that translate web addresses into ip numbers and etc. needed for the internet. They are what do all the linking between web address and site. If you knew the ip adress of a server which you can get through a whois, you could connect to any site through their ip address the same way you would trough the domain name.

As for how you get connected your ISP assigns you an Ip adress and DNS to use.
Reply With Quote
  #4 (permalink)  
Old December 26th, 2001
Novicius
 
Join Date: December 25th, 2001
Posts: 2
Darkk is flying high
Default

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?
Reply With Quote
  #5 (permalink)  
Old December 26th, 2001
Moak's Avatar
Guest
 
Join Date: September 7th, 2001
Location: Europe
Posts: 816
Moak is flying high
Default

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.
Reply With Quote
  #6 (permalink)  
Old April 5th, 2002
Devotee
 
Join Date: March 29th, 2002
Location: Germany
Posts: 21
Pferdo is flying high
Default reverse dns

hi,
how can i reach easily the "dns-entry" of an IP I've got?
Any WinAPI-functions?

thx
Reply With Quote
  #7 (permalink)  
Old April 5th, 2002
RTFM
Guest
 
Posts: n/a
Default

http://www.google.de/search?q=Winsock+hostname+IP
gethostbyname() ....5th link is also in german language.
Reply With Quote
  #8 (permalink)  
Old April 5th, 2002
Devotee
 
Join Date: March 29th, 2002
Location: Germany
Posts: 21
Pferdo is flying high
Default

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
Reply With Quote
  #9 (permalink)  
Old April 5th, 2002
RTFM
Guest
 
Posts: n/a
Default

All you need is the Winsock FAQ.
RTFM
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
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


All times are GMT -7. The time now is 08:56 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.