LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-03-2006, 07:46 PM   #1
w3l
LQ Newbie
 
Registered: Oct 2005
Posts: 9

Rep: Reputation: 0
Public IP Problem


my ISP provider runs a dhcpcd server and thats how I get my network information. I connect Fine to the internet no problems with that. When I issue ifconfig everything comes out correctly here an example:

Code:
eth0      Link encap:Ethernet  HWaddr X:X:X:X:X
          inet addr:192.168.1.96  Bcast:255.255.255.255  Mask:255.255.255.0
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:13563 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13403 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3292864 (3.1 Mb)  TX bytes:1101363 (1.0 Mb)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:2428 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2428 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:128409 (125.3 Kb)  TX bytes:128409 (125.3 Kb)
thats the whole output of ifconfig. Now the inet addr is a Class C IP which is fine. But now where is my public IP ? I run a web server with a dynamic domain due to my IP being dynamic so I need an Interface that carries my public IP so I can update my sub-domain. Any help would be helpful.

best regards,
wel

Last edited by w3l; 03-03-2006 at 09:24 PM.
 
Old 03-03-2006, 07:59 PM   #2
Sargek
Member
 
Registered: Jan 2003
Location: San Antonio, Texas
Distribution: Debian testing
Posts: 416

Rep: Reputation: 36
Are you hooked up with a broadband connection? Are you going through a router or firewall? If the answer to those is yes, your router setup should have your public IP listed. Not sure how to get it otherwise.
 
Old 03-03-2006, 09:07 PM   #3
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
in the output of ifconfig you should block out the mac address (HWAdd), and never give out the mac address or you public IP address.

btw, do you know who tiesto is?
 
Old 03-03-2006, 09:25 PM   #4
w3l
LQ Newbie
 
Registered: Oct 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Sargek
Are you hooked up with a broadband connection? Are you going through a router or firewall? If the answer to those is yes, your router setup should have your public IP listed. Not sure how to get it otherwise.
Yes the answer is yes to all of those except the firewall
 
Old 03-04-2006, 12:38 AM   #5
blinkey
Member
 
Registered: Mar 2006
Posts: 30

Rep: Reputation: 15
You need to look into your router to get your external address.

But you could also use one of the internet sites that will display what the world see's of you.

Here's one. There are many others.

http://stealthtests.lockdowncorp.com/

Look at the very bottom of the page for your external ip address.

After you work this out, you will still need to setup portforwarding in the router to point relevent requests from the router to your internal server.
 
Old 03-04-2006, 06:42 AM   #6
maheshk78
LQ Newbie
 
Registered: Feb 2006
Posts: 5

Rep: Reputation: 0
Adsl ?

Hi,
I guess you are using broadband internet through ADSL link. In these setups, ISPs dont assign your PC global IPs that are accessible from the internet. Instead , your router's WAN interface will be assigned the global IP which runs NAT. It is intentionally done by the ISP to save Global IPs, minimize the attacks from the internet and to stop the customer from hosting any server side programs that are accessible from the internet because they can consume a lot of bandwidth (upload bandwidth). Contact your ISP for a static global IP. You need to pay more to your ISP if you need a static Global IP (Usually several times higher than your present tariff).
-mahesh.k
 
Old 03-04-2006, 08:18 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,676

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
As previously posted, your router will WAN interface will be assigned the IP address from your ISP. There are free dynamic IP DNS sites like www.noip.com or www.dydns.com that will automatically update when your IP changes. An update client runs periodically on your PC that will update the DNS site when your IP changes. You will need to foward port 80 from the router to your server's IP address. You should use a static IP address for the server.
 
Old 03-04-2006, 09:02 AM   #8
w3l
LQ Newbie
 
Registered: Oct 2005
Posts: 9

Original Poster
Rep: Reputation: 0
reply

I think I have a solution I'm going to use rp-pppoe which enables the *face ppp0 with my global IP. that way I'm able to update the dyndns client (ez-ipupdate) using the ppp0 *face. Regarding the Static IP you are right is expensive. So I'll just stick to the above solution for now.

Thank you.

PS: people really learn lots about linux with this forums. GREAT WORK !!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh public key problem Lotharster Linux - Networking 3 12-28-2005 08:18 PM
Samba Public Share Problem mundz Linux - Software 1 05-11-2005 11:02 AM
Problem in configuring eth1 with public IP randomtask Linux - Hardware 1 01-22-2005 12:09 AM
Public IP problem OliXNet Linux - Networking 7 12-22-2004 04:28 PM
Public key authentication problem Gameon Linux - Security 7 01-02-2004 06:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration