Avatar of Sheldon Livingston
Sheldon Livingston
Flag for United States of America asked on

Wrong IP Address on Ubuntu?

I have just configured a LAMP on my 10.1.1.x network.

The LAMP hits the Internet but shows an IP address of 192.168.0.109/24 (eno1).

Cable (Arris) modem is providing DHCP.

How is it possible for this to happen?  I'm thinking that I want the LAMP to have a 10.1 address.
DHCPNetworkingUbuntu

Avatar of undefined
Last Comment
yo_bee

8/22/2022 - Mon
David Favor

10.1.1.x is a nonroutable network. Meaning no one outside your LAN or WAN will see this address.

192.168.0.109 is your upstream, public IP which can be seen by everyone.

To say another way 10.1.1.x is what you see.

192.168.0.109 is your Google Fiber address (based on introspecting your IP) which anyone can see.

Now then. Whether or not anyone can connect to your LAMP Stack running on 10.1.1.x is an entirely different question.

If you have challenges connecting... which you likely will... open another question about this.

Tip: LAMP Stacks serving content to visitors should run on a public server, unless you have multiple IP providers + a backup generator, so your site(s) stay online, independent of network outages + power outages.

Check pricing of OVH + OVH imprints/brands (SoYouStart + KimSufi). Prices start at $5/month for dedicated servers.

This will give you a good foundation to build public LAMP Stack based sites.

Since your just getting started, you're welcome to PM me + we can book a Skype call. Likely I can provide you some tips to save you time.
Sheldon Livingston

ASKER
Sorry David... 192.168.0.109 falls into the non-routable space of 192.168.0.0 - 192.168.255.255.

https://en.wikipedia.org/wiki/Private_network
David Favor

192.168.0.109 shows to be owned by Google Fiber.

If you're saying you don't have Google Fiber as your ISP than something's badly wrong + you should contact your ISP for further assistance, as they've assigned a wrong IP to your account.
Your help has saved me hundreds of hours of internet surfing.
fblack61
David Favor

https://www.iplocation.net - IP ownership tester.

How Google routes packets is a different matter. They may route 192.168.0.109 through their infrastructure.

First question to answer is if your ISP is or isn't Google Fiber, so you know you have a correct upstream IP.
David Favor

Next you can use the mtr command to provide a realtime view of packet flow, for further debugging.
Sheldon Livingston

ASKER
192.168.0.109 is a non-routable ip address.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
David Favor

You still haven't answered if your using Google or not.

If you are using Google, you have another problem.

https://fiber.google.com/legal/accepteduse/residential/ which specifically states you can't run any commercial servers using their IP.

The word commercial in this context means any listening servers - Apache, SMTP, IMAP4, anything listening.

I know on my Google Fiber connection, they block all ports listening, so the only way to run a LAMP Stack using a Google Fiber IP is to run an ssh proxy for your connection.

Way faster speed to use a dedicated server.
Sheldon Livingston

ASKER
192.168.0.109 is a non-routable address

https://www.lookip.net/whois/192.168.0.109
John

shows an IP address of 192.168.0.109/24 (eno1).  Cable (Arris) modem is providing DHCP.

The Arris modem (I had one here) has a default internal subnet of 192.168.0.x  .  It will have an external IP address whatever the ISP assigned. That is how it has been set up and you need to access the Arris setup to change it. This is independent of Google Fiber.

I get the ISP to bridge my modem (done) and then use a hardware router to set the internal addressing to whatever I want.

My Arris modem was changed out to a Hitron modem but it works the same way.

I suggest you implement your own router to facilitate your own setups.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
Sheldon Livingston

ASKER
Thank you John.

The ARRIS was reconfigured years ago when I obtained it.  Any other device logging into my network gets a 10.1.1.x address.

Only issue is with this LAMP.
John

Yes, Sheldon, the Arris can be reconfigured for its internal IP. I agree with that. I use my own router for my own sanity and simplicity :)

The ARRIS was reconfigured years ago when I obtained it.  Any other device logging into my network gets a 10.1.1.x address.

I don't understand with the device in question stays with 192.168 addressing. I am still looking (but not with much success yet
Sheldon Livingston

ASKER
So I'm guessing that I'm not seeing the Arris as the issue.  I really don't want to get a router and set it up just for the sake of the LAMP when everything else works with the Arris.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
John

I am not sure about the following but some of the information appears to apply to you. Look at the Answer post part way down.

https://unix.stackexchange.com/questions/219654/cannot-access-lamp-web-server-on-ubuntu-server-14-04
ASKER CERTIFIED SOLUTION
Sheldon Livingston

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
yo_bee

Solid catch