LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Public IP Problem (https://www.linuxquestions.org/questions/linux-networking-3/public-ip-problem-421402/)

w3l 03-03-2006 07:46 PM

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

Sargek 03-03-2006 07:59 PM

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.

nadroj 03-03-2006 09:07 PM

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?

w3l 03-03-2006 09:25 PM

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

blinkey 03-04-2006 12:38 AM

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.

maheshk78 03-04-2006 06:42 AM

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

michaelk 03-04-2006 08:18 AM

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.

w3l 03-04-2006 09:02 AM

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 !!! :) :D


All times are GMT -5. The time now is 07:19 AM.