Networking Forums

Networking Forums > Computer Networking > Linux Networking > Port forwarding not needed...

Reply
Thread Tools Display Modes

Port forwarding not needed...

 
 
Julia Goolia
Guest
Posts: n/a

 
      05-06-2004, 02:50 PM
Hello,

I am confused about the theory or inner workings of port forwarding.
If I have a network with 2 computers running behind a router which
effectively shares 1 IP between the 2 computers... and they both
listen on port 8000... the calls to listen and bind should return
successfully right? What happens (without port forwarding) when
someone trys to connect to this network on port 8000?

I find this weird, because when I run Bit Torrent, it seems to work OK
even without port forwarding... how is this possible?

Thanks!
julia
 
Reply With Quote
 
 
 
 
David Efflandt
Guest
Posts: n/a

 
      05-06-2004, 05:32 PM
On 6 May 2004 07:50:56 -0700, Julia Goolia <(E-Mail Removed)> wrote:
> Hello,
>
> I am confused about the theory or inner workings of port forwarding.
> If I have a network with 2 computers running behind a router which
> effectively shares 1 IP between the 2 computers... and they both
> listen on port 8000... the calls to listen and bind should return
> successfully right? What happens (without port forwarding) when
> someone trys to connect to this network on port 8000?
>
> I find this weird, because when I run Bit Torrent, it seems to work OK
> even without port forwarding... how is this possible?


When 2 computers are behind NAT or masquerade, if they make an outgoing
connection, the NAT/masq actually uses a different source port and/or
id in the packet out the public IP, so it knows where to forward a
related reply (or in some cases even if the reply comes to a different
related port).

However, if you had 2 PC's behind NAT/masq both listening on port 8000,
and a connection from outside was initiated to port 8000 on your public
IP, the NAT/masq box would not know what to do with that, unless the
NAT/masq box either had something listening on that port that knew what to
do with it, or was set to forward that public iport to a single internal
iport.

I am not familiar with Bit Torrent, but if it broadcasts like other file
sharing programs, the other end would know what public port or packet id
to use to reach a particular internal IP, based on your outgoing packets.

--
David Efflandt - All spam ignored http://www.de-srv.com/
 
Reply With Quote
Reply

Thread Tools
Display Modes

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How-To needed: Port Forwarding (Routing?) =?Utf-8?B?WWF2dXogQm9nYXpjaQ==?= Windows Networking 2 01-19-2005 03:23 PM
help needed: router ip port forwarding Beowulf Network Routers 5 11-01-2004 03:18 PM
Port Forwarding Help Needed EdG Broadband Hardware 4 07-09-2004 09:17 PM
Port forwarding on Conexant 4 port adsl router Graham Russell Broadband 1 10-17-2003 11:09 AM
Stupid Question: Port Triggering vs. Port Forwarding Bryce Wireless Internet 3 09-09-2003 05:45 AM



1 2 3 4 5 6 7 8 9 10 11