this post was submitted on 02 Dec 2023
9 points (84.6% liked)

Asklemmy

43856 readers
1881 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy 🔍

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_[email protected]~

founded 5 years ago
MODERATORS
 

Could someone explain why we can’t just plug the average PC etc into a ‘raw’ internet line (like just entering a house) and have a mini modem on the motherboard do the translation work?

I know there’s a limit to IP addresses, and that it’s maybe easier to have a little box do the work where it enters a building.

… but apart from that?

all 14 comments
sorted by: hot top controversial new old
[–] [email protected] 7 points 11 months ago* (last edited 11 months ago) (1 children)

I think you wonder whether your PC can be connected directly to the internet. Yes, like every server, router, firewall, technically you can. You would need to set up your connection completely manually, as there is no one doing that for you.

However, connecting millions of people is an epic task in itself. You would need at least as many public IP addresses as consumers have devices, and find a way to drag ethernet cables over enormous distances… while these won’t exceed about iirc 120m until signal loss is killing the connection. Then you would need all those consumers to have intricate network knowledge too.

Hence why we’re modems that can use long distance connections (like DSL over phone lines), that can arrange internal network connectivity without you having any knowledge, and apply internal IP space instead of public. Also your ISP can apply efficient internal routing and even internal IP space to save on rare and expensive public space.

There is much more to this, but I wanted to keep it ELI5. HTH!

[–] [email protected] 1 points 11 months ago (2 children)

So theoretically if you didn’t need more than one device at your end connected, you could (in theory) plug the internet cable straight into a pc. In theory.

[–] [email protected] 3 points 11 months ago

Yes. In fact, that is what a server does. It is much like your PC, just heavily optimised for providing services (like websites) to many users. There is no modem between the server and the first router, just straight ip with the router as the default gateway.

[–] [email protected] 3 points 11 months ago

You can. In practice

If you have two or more network adapters in your computer it can do network address translation to share your connection with your other devices that would use private IP addresses. If one of those network adapters is WiFi, your computer can act as a wireless access point.

[–] [email protected] 4 points 11 months ago (1 children)

There's no modem needed, actually. All of that can be done in software, and you can configure a desktop as a PPPoE client (that's the protocol your router uses to log into your ISP's network and receive internet connectivity). Obviously, you'd need to configure that PC as a router for other computers to also share the connection, and running a typical interactive system 24/7 as a router is hideously inefficient in terms of power use.

[–] [email protected] 2 points 11 months ago

Some ISPs just hand out an IP with a DHCP server directly on the line, so it might be even simpler.

Setting up your own PPPoE client is extremely easy, so either way you most definitely can do what OP wishes for.

[–] [email protected] 4 points 11 months ago* (last edited 11 months ago)

Most routers are actually small PCs, just optimized for the specific purpose of connecting to the internet over a phone or TV line, providing a separate internal network in your home and bridging the two. But you could do that with any regular PC with the right hardware.

Your ISP could also just provide you with a standard network connection, so you don't have to use a modem to transmit data over a line that was originally built for a different purpose. This is not very common since most houses still predate the internet, but it might become the norm at some point.

The main benefit of having a separate network is that devices in it are not directly visible and accessible from outside. All others see is your router, and they can only access your devices if you establish the connection first or manually forward ports. You can also structure the local network however you like (e.g. assign IPs and domain names, create subnets), without being restricted by or affecting the outside world.

[–] [email protected] 3 points 11 months ago (1 children)

Thanks for all the responses. V interesting.

The other day while shopping for a new modem-router, we kept finding good deals only to realise that they were only routers. No fibre-to-the-house for us yet so dems no good. Don’t want to chase around finding a separate modem too. Got a TP-Link Deco in the end. It seemed the easiest / best thing available to the physical Saturday consumer in need.

[–] [email protected] 2 points 11 months ago (1 children)

Just to add a bit of discussion on the modem vs. modem + router thing. I know it’s a pain to have to get two devices; cost is higher; also two things to worry about hooking up/configuring.

At my previous place I bought a Motorola modem in 2012 or so. I kept that modem for 10 years and it chugged along delivering the speeds I paid for. Because it simply had an Ethernet port on the back of it, it meant that I went through 3 or 4 routers in that period. Some were replaced because I got a router for free from a friend and wanted to install custom firmware. Some were swapped in because the previous one failed, and the last one was added because I upgraded to a Ubiquiti Edge Router and two separate WAPs.

None of this would have been possible with a combo device.

Again, I’m not trying to convince you or anyone else that this is a path for everyone, just adding a different way of viewing the two devices situation. It offers you flexibility and plug-ability.

[–] [email protected] 2 points 11 months ago

Sure. Sounds good. I saw lots of stand-alone routers on the shelves, but nary a solo modem.

My query was purely theoretical anyway.

[–] [email protected] 3 points 11 months ago

yes, we can.

but it's a niche market so you have to diy

[–] [email protected] 2 points 11 months ago

That's actually more or less how it used to work. You'd plug your computer directly to the internet and connect that way. You'd have to dial into the internet. Constantly being online was a novelty. Especially when you paid by the minute. But then people started having more than one PC and thus home routers became a thing.

[–] [email protected] 2 points 11 months ago* (last edited 11 months ago)

If your ISP uses an Ethernet cable into your premises, then you most likely can do exactly that. Either you’ll get an IP from the ISP’s DHCP server or you’ll have to configure a PPPoE client with some login details before the ISP issues you an IP and connectivity.

To do that to every device on the globe you’ll need a much larger address space to IPv6 is your only choice.

That said, be mindful of the security that a router provides. Connecting your PC this way means you desperately need to keep it up to date and running restricted firewall.

Some ISPs run a coaxial cable into your house, though. Most of these use (Euro)DOCSIS and finding an interface card for a regular PC seems impossible.

All in all, it’s possible but it depends on the cabling standards and the protocols spoken. Don’t forget, at the end of the day, your modem is just a computer running Linux, most likely.

Check out OPNsense or OpenWRT if you’re interested in using a regular computer for routing. Alternatively just use Linux but it’s a lot more work.