On 11/10/07, Aman Mathur <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Im using MTNL's Triband service for accessing the Internet at home . I
> have never requested a static ip address from MTNL, however whenever im
> connected to the Internet, I see that my ip address is constant , something
> like 192.168.1.x , where x is the same all the time.I am new to networking
> and stuff so please excuse me if my questions sound a bit noobish :)
>
> Ok,so i have the following two questions :
>
> 1) Is this ip address of mine a static ip address ?. If not , then why
> does it stay the same all the time ?
>
> 2) If I want to host my website on my computer which anyone on the
> internet can access, how do i go about it ? . I have some basic idea of
> port forwarding and read some of the tutes on www.portforward.com,
> which were really informative, but im still not sure how i can host a
> website on my computer which anyone can access.
>
> Thanks a lot :)

Hey buddy, listen up. Learn about TCP / IP. Learn about how routing is
done. Learn about the different class of IPs there are out there in
the wild wild wild internet :P

After you do that, you'll probably understand what I'm about to say.

Your machine is in the "private" section of the internet. ( Learn
about Private IPs ). For your machine to host a server you need the
following things:

1. Public IP
2. Server Port should be open

With TriBand you already have a Public IP. But theres a problem. Here
is how your machine connects to the internet:

Internet ( A ) ------> TriBand router ( B ) -----> Your M/C ( C )

Now the problem is C has a private IP assigned by B. B has a public IP
assigned by MTNL. So how is C able to talk to the internet? Its
because B NATs C. With NATing C is able to make outgoing connections
but nobody can directly make a connection back to C. Why? Simply
because B is in the way :P

But you need to make C accessible from the outside world so that your
server will be reachable. How is that done? Two methods:

1. DMZ ( Demilitarized Zone )
2. Port forwarding
3. Bridge mode your MTNL router

( I think even Virtual server would also work )

With 1 & 2, certain packets arriving at B will be forwarded to C
transparently. With 3, your router will be just "bridge".

With all the 3 methods, your machine will be visible to the outside
world or atleast port 80 will be accessible ( incase of portforwarding
).

Next comes the DNS. This is plain and simple. For people with dynamic
IPs you need to register with dyndns or similar Dynamic DNS Provider.
You need to install the their client to keep your IP updated with
them.

For static IPs, its as simple as setting up the DNS once :)

Now I do understand that you may not have understand most things I
wrote in the reply. But that is where your effort comes in. Do search
for NAT, TCP, IP, Routing, DMZ, Portforwarding, etc.. etc...

-- 
Regards,
Dinesh A. Joshi

-- 
http://mm.glug-bom.org/mailman/listinfo/linuxers

Reply via email to