Public ip is not shown in ifconfig - Ubuntu 16.04


 
Thread Tools Search this Thread
Operating Systems Linux Ubuntu Public ip is not shown in ifconfig - Ubuntu 16.04
# 8  
Old 11-24-2018
Hello,

@hicksd8 , I am gonna reduce security level in router and let you know. When I traceroute there seems connection lost somewhere in the middle.
@Rudic, My mobile phone has its own mobile network. I activate tethering hotspot function so that I would test my house network remotely.

I will inform you soon.

Thanks
Boris

------ Post updated at 10:54 AM ------

Hello,

@hicksd8, I have just disabled firewall, then tried apache site but failed.
When I traceroute, I see it fails somewhere in the middle..

Code:
 $traceroute ***.ddns.net
1  _gateway (51.68.224.1)  0.676 ms  0.641 ms  0.618 ms
 2  192.168.250.254 (192.168.250.254)  0.593 ms  0.572 ms  0.552 ms
 3  10.69.151.62 (10.69.151.62)  0.532 ms  0.511 ms  0.490 ms
 4  10.69.131.170 (10.69.131.170)  0.470 ms  0.447 ms 10.69.131.172 (10.69.131.172)  0.427 ms
 5  10.69.128.76 (10.69.128.76)  0.613 ms 10.69.128.80 (10.69.128.80)  0.512 ms  0.429 ms
 6  10.17.146.2 (10.17.146.2)  0.637 ms 10.17.146.0 (10.17.146.0)  0.585 ms 10.17.146.6 (10.17.146.6)  0.547 ms
 7  10.73.0.76 (10.73.0.76)  0.525 ms 10.73.0.72 (10.73.0.72)  0.500 ms 10.73.0.78 (10.73.0.78)  0.492 ms
 8  10.95.33.10 (10.95.33.10)  1.435 ms  1.511 ms  1.398 ms
 9  xxxxxxxxxx.xxx-1-xx.xx.eu (111.111.111.111)  4.791 ms  4.770 ms  4.792 ms
10  * * *
11  xxxxxx.xxxxx.xxxxx.xxxxx.xxxxxxxx.com (111.111.111.111)  5.202 ms xxxxxx.xxxxx.xxxxx.xxxxx.xxxxxxxx.com (111.111.111.111)  5.216 ms xxxxxx.xxxxx.xxxxx.xxxxx.xxxxxxxx.com (111.111.111.111)  5.285 ms
12  xxxxxx.xxxxx.xxxxx.xxxxx.xxxxxxxx..com (111.111.111.111)  5.660 ms  5.690 ms  5.666 ms
13  xxxxx.xxxxx.xxxxx.xxxxxxxx..com (111.111.111.111)  5.180 ms  5.222 ms  5.314 ms
14  xx-1-2-0.xx1-xxx2.xxx.xxx.net (111.111.111.111)  49.200 ms  49.153 ms  49.162 ms
15  xxx.xxx.net (111.111.111.111)  52.692 ms  52.519 ms  52.535 ms
16  * * *
17  * * *
18  * * *
19  * * *
20  * * *
21  * * *
22  * * *
23  * * *
24  * * *
25  * * *
26  * * *
27  * * *
28  * * *
29  * * *
30  * * *

In dns company's page, I see localnetwork ip is correct.
Seems like I need to contact to ISP, do you have any other idea?

Thanks in advance
Boris

------ Post updated at 11:10 AM ------

One note:
When I check local network devices, I see my pc ip rent duration shown expired. When I change the static ip from 192.168.1.99 to 192.168.1.90 nothing changes. It shows "expired"


Code:
DeviceName      IP Adress      MAC Nr.      Rent Duration
192.168.1.20    xx:yy:zz:xx    Active
Boris-iPad    192.168.1.21    xx:yy:zz:xx    Active
Boris-MBP    192.168.1.22    xx:yy:zz:xx    Active
Static-00-25-22-DD-27-C9    192.168.1.90    xx:yy:zz:xx    Expired

Could it be related to this?

Thanks in advance
Boris




Moderator's Comments:
Mod Comment Obfuscated your company's public IP addresses to prevent abuse. You might want to do that yourself in the future...

Last edited by baris35; 11-24-2018 at 02:06 PM..
# 9  
Old 11-26-2018
Hello,
Thank you all for your support.
ISP says: As you have a dynamic ip, your apache site can't be accessible out of your network.
Even though I do not reboot my router, my dynamic ip shown in my computer is not the same for those who establish connection to my network. Their pool changes the ip. Incoming and outgoing traffic are assigned to different ip addresses. So they recommended me to rent a static ip. Sounds weird but now it's working.

Kind regards
Boris
# 10  
Old 11-26-2018
Sure, this IP address you provided:

Code:
192.168.1.20

Is not routable (usable on the global internet) and it is considered "private" IP address space.

If you want to access your devices on that network from outside your private LAN, you will need to pay for a static IP address.

This is pretty basic IP routing stuff.
This User Gave Thanks to Neo For This Post:
# 11  
Old 11-26-2018
Yes, but if this is not a production web server, only a private one, you can use Dynamic DNS to manage the public ip address pool changes, and route the in-bound connection to your private web server using a port number. A poor man's solution.
# 12  
Old 11-26-2018
Dear Hicksd8,
I tried "dns update", successfully updated every five minutes my dns but when I ping to my public ip, router was not responding. That was the issue. Now when I ping remotely, router answers to my ping requests.
At least, solved with static ip.

Many thanks
Boris
# 13  
Old 11-26-2018
Quote:
Originally Posted by hicksd8
Yes, but if this is not a production web server, only a private one, you can use Dynamic DNS to manage the public ip address pool changes, and route the in-bound connection to your private web server using a port number. A poor man's solution.
This is not actually the case on the provider side.

The public Dynamic DNS is assigned by the provider belongs to a pool of IP addresses which can be assigned to any number of customers. The end user does not control the entire IP address block of the provider.

So, even when we add maps to our ISP interfacing device (like a router) to map externally assigned IP addresses to our internal addresses, we can assure the public address will remain static.

The issues of assigning static IP addresses on the customer side (the LAN side) is moot since these devices (and hence the private IP address blocks) are normally under the control of the end users.

For example, I have a fiber optic link directly from my ISP to my home. I do not pay for a static public IP address, so my address (on the public side of my router) changes all the time. I have all my private internal LAN addresses (192.168) configured static for a number of reasons.

It is not feasible to "punch though" from the public side to my private network because the public address changes constantly (as I have paid for, the cheap service) so we do not know what that IP address is from hour to hour. One moment, it could belong to my device, then an hour later the same IP address can be assigned to another customer of the same ISP.

I'm not following you about "production server" versus "personal server" and how this effects access using a publicly dynamic IP address. IP addresses do not care about their status. They are assigned based on a service contract with an ISP; and if you are paying for a public dynamic IP address, that is what you get on the public side, the fact if it is personal, experimental, fun and friendly, of the most important server in the world does not effect routing. The service we pay for effects routing and the configuration.

We pay for the services we need. In my case, if I needed to have (or wanted to expose) a server on my network accessible to the world, I would then pay for a statically assigned public IP address. I prefer not to expose my LAN to the world for security reasons.

On the internal LAN side, the point is mostly moot since we (the end user) have control over that IP address space and we can easily assign that as static (like I do) or dynamically, it is up to us and the size of our LAN users and how we want to manage things.
This User Gave Thanks to Neo For This Post:
# 14  
Old 11-27-2018
Well here in the UK, my ISP does allow me to ping my current public ip address so that my router can respond. Usually, my public ip address changes rarely; typically less than once a month. However, I can use Dynamic DNS to update every 5 minutes and therefore track my public ip should it change. I can use port forwarding to pass-through any in-bound connection specifying a particular port number to my desired machine.

This is no good for a production system because if I just happened to want to call in when my public ip has just changed, I might have to wait up to 5 minutes for it to work.

However, since the OP says that his public pool ip won't ping then it seems his ISP blocks traffic to such subscribers.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

[CUPS] printers not shown after a while

I'm currently running a CUPS server and it shows the printers on other computers just fine, but after a while they disappear. I found out, that restarting /etc/init.d/cups-browsed fixes the problem (for about 15min). When the printers disappear, the cups-browsed service is still running, so I... (0 Replies)
Discussion started by: Gajeela
0 Replies

2. Solaris

Using dd command no MB/s shown

Hi I am using the dd command on solaris 10 and the output doesn't include the MB/s statistic that you get in Linux, is this not available or am I missing a switch of some sort #dd if=/dev/urandom of=/perf_test/file.txt bs=1048576 count=500 0+500 records in 0+500 records out (2 Replies)
Discussion started by: eeisken
2 Replies

3. Shell Programming and Scripting

What are public keys in ssh and how do we create the public keys??

Hi All, I am having knowledge on some basics of ssh and wanted to know what are the public keys and how can we create and implement it in connecting server. Please provide the information for the above, it would be helpful for me. Thanks, Ravindra (1 Reply)
Discussion started by: ravi3cha
1 Replies

4. Solaris

sun cluster3.2, d3 and d8 are shown as failed

Hello, This is a 2 node sun cluster 3.2 on solaris 10(x86) I am using an unique ~512M disk (c0d1) on each node and slice 6 on this disk for globaldevices. While everything looks like fine, the 'Fail' is bothering me. @ tommy_sun1 @tommy_sun -bash-3.00# cldevice refresh... (10 Replies)
Discussion started by: upengan78
10 Replies

5. Solaris

what FS is shown in df -kh

Hi, On solaris 10, t5120, I don't understand what are the last 2 file systems so last 2 file systems what are they, why are they getting shown and also confused why the swap is shown so many times and different size when I set it to 16 G at the time of installing solaris 10. ( rest... (3 Replies)
Discussion started by: upengan78
3 Replies

6. Shell Programming and Scripting

Help!! how to get the filename as be shown?

I am trying to obtain the file name (not including sub file name), however, I still cannot have the string output. :( 2 existed files at /tmp, AAA.new and BBB.last Originally, the output result is needed to be shown as follows, ex: SYSTEM NEW LAST =================== 01 ... (8 Replies)
Discussion started by: Jones Lin
8 Replies

7. Solaris

preventing the banner from being shown

Is there a way to supress the banner from being shown when you log in? (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies

8. UNIX for Dummies Questions & Answers

working directory shown

Hi, How do I get my working directory always shown in the unix editor? i.e if I am now at /Home/abc/xyz/, I want to see this absolute path displayed ( and now only display when I type pwd). thanks for the kind help. Regrads (3 Replies)
Discussion started by: swchee
3 Replies
Login or Register to Ask a Question