Dynamic IP

This is a discussion on Dynamic IP within the Linux Networking forums, part of the Linux Forums category; Hi: I have a dsl connection whose IP address is dynamically assigned by my ISP, my question is: Is it ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-04-2004
Francisco Mendez
 
Posts: n/a
Default Dynamic IP

Hi:

I have a dsl connection whose IP address is dynamically assigned by my
ISP, my question is:

Is it possible to access my web server (Appache 2.0, on Fedora Core 1)
from another computer via internet or do i need to have a static IP and
a registered domain name?

Thx in advance,

FM>

Reply With Quote
  #2 (permalink)  
Old 03-04-2004
Sandro Mangovski
 
Posts: n/a
Default Re: Dynamic IP

Francisco Mendez wrote:

> Hi:
>
> I have a dsl connection whose IP address is dynamically assigned by my
> ISP, my question is:
>
> Is it possible to access my web server (Appache 2.0, on Fedora Core 1)
> from another computer via internet or do i need to have a static IP and
> a registered domain name?


Yes it is. You can use dynamic DNS.

--
Sandro Mangovski
<Fish:#linux>@irc.idolnet.org
PGP Key:
QOTD: A verbal contract isn't worth the paper it's written on.

Reply With Quote
  #3 (permalink)  
Old 03-04-2004
Dan
 
Posts: n/a
Default Re: Dynamic IP

On Thu, 04 Mar 2004 01:28:43 -0600, Francisco Mendez
<iframe@prodigy.net.mx> wrote:


>Is it possible to access my web server (Appache 2.0, on Fedora Core 1)
>from another computer via internet.


Yes.

> or do i need to have a static IP and
>a registered domain name?


Having a domain name helps. Otherwise you have to type the ip address
into the browser, and that's not fixed.

Getting a domain name isn't difficult. I've written a short howto on
the topic which you can access at www.dannelson.net/LSH .

You need to use dynamic dns. If you have a domain name, you will have
an authoritive name server for it. The name server keeps the ip
address for the domain. Whenever your web server gets a new ip
address, it uses a small program which contacts the name server and
updates the ip address. The update client that I use is ddclient. I
also use www.zoneedit.com as my name server (free dynamic dns). Their
faq has a section on dynamic dns.

If you don't want to go to the trouble of getting your own domain
name, then you can use a sub-domain from someone else. Have a look at
www.dyndns.org , I think they do dynamic dns and give you a subdomain
name, i.e., yourname.dyndns.org.

Dan

Reply With Quote
  #4 (permalink)  
Old 03-04-2004
Francisco Mendez
 
Posts: n/a
Default Re: Dynamic IP

Hi Dan:

Thanks for your answer. As far as I understand, the solutions you give
me involve registering and/or installing some software in the external
machine.

i was thinking in a more naive solution, as looking my assigned ip
provided by my isp, and then writing that address in the browser, from
which i'll be accessing my server. The external machine will not allways
be the same.

By the same idea what about connecting to my machine via ssh and/or
telnet, is that possible?


Reply With Quote
  #5 (permalink)  
Old 03-04-2004
Francisco Mendez
 
Posts: n/a
Default Re: Dynamic IP

thanks Sandro, can you explain how that's done?

FM>

Reply With Quote
  #6 (permalink)  
Old 03-04-2004
Sandro Mangovski
 
Posts: n/a
Default Re: Dynamic IP

Francisco Mendez wrote:

> thanks Sandro, can you explain how that's done?


www.dyndns.org
All instructions are there. Have fun!

--
Sandro Mangovski
<Fish:#linux>@irc.idolnet.org
PGP Key:
QOTD: Employees are the rungs on the ladder of success... don't hesitate to
step on them.

Reply With Quote
  #7 (permalink)  
Old 03-04-2004
jack
 
Posts: n/a
Default Re: Dynamic IP

Francisco Mendez wrote:
> i was thinking in a more naive solution, as looking my assigned ip
> provided by my isp, and then writing that address in the browser, from
> which i'll be accessing my server. The external machine will not allways
> be the same.


The thing is, when You are at that remote location, how would You know
the address that Your box currently has (since it will change from time
to time, as You know).

There are other ways to do this than with dynamic DNS, like having it
sent to You via e-mail or some paging device such as a cell-phone. But
using dyndns or the like has the advantage that You only have to remem-
ber one name that You registered Yourself with.


> By the same idea what about connecting to my machine via ssh and/or
> telnet, is that possible?


Of course it is. - If You know the IP that You currently have, just
go "ssh user@$IP_ADDRESS", and Yo're done. If You use dyndns, it's
like "ssh user@yourname.dyndns.org". - You should not allow telnet
from the outside if You have ssh.

To clarify this: Your problem is to determine what dynamic IP address
Your ISP gave You, especially if it changes while You're not at home.
Once You have that address (because You got it by e-mail or via some
dynamic DNS service), all services that Your box offers are available
from the outside, unless You block connection attempts via some fire-
walling mechanism.


Cheers, Jack.

--
----------------------------------------------------------------------
My personal reading of the string "MicroSoft" expands to "NanoWeak"...
Reply With Quote
  #8 (permalink)  
Old 03-04-2004
James Knott
 
Posts: n/a
Default Re: Dynamic IP

Francisco Mendez wrote:

> Hi:
>
> I have a dsl connection whose IP address is dynamically assigned by my
> ISP, my question is:
>
> Is it possible to access my web server (Appache 2.0, on Fedora Core 1)
> from another computer via internet or do i need to have a static IP and
> a registered domain name?


Other than the fact that a dhcp address may change occasionally, there's no
other difference between dhcp and static addresses. As long as you know
your IP, you can connect.

--

Fundamentalism is fundamentally wrong.

To reply to this message, replace everything to the left of "@" with
james.knott.
Reply With Quote
  #9 (permalink)  
Old 03-04-2004
James Knott
 
Posts: n/a
Default Re: Dynamic IP

jack wrote:

> The thing is, when You are at that remote location, how would You know
> the address that Your box currently has (since it will change from time
> to time, as You know).
>


My address changes so seldom, it's virtually static. Also, my host name is
consistent, so even if my IP changes, I can still get to it by using my
host name.

--

Fundamentalism is fundamentally wrong.

To reply to this message, replace everything to the left of "@" with
james.knott.
Reply With Quote
  #10 (permalink)  
Old 03-04-2004
Dan
 
Posts: n/a
Default Re: Dynamic IP

On Thu, 04 Mar 2004 02:47:33 -0600, Francisco Mendez
<iframe@prodigy.net.mx> wrote:

>Hi Dan:
>
>Thanks for your answer. As far as I understand, the solutions you give
>me involve registering and/or installing some software in the external
>machine.


I'm not sure what you mean by 'external machine'. The update client
goes on the same machine as your web server (assuming that your web
server is the machine that makes the dsl connection). If you are
capable of installing Apache, you're capable of installing the update
client. Whenever that machine gets a new ip address, the update
client updates the remote name server. Then you can access your web
server from anywhere by name.

Dan

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 12:01 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0