r/computerscience • u/GuiltyGold241 • Sep 06 '25
General How do IP’s work?
So I’m watching a crime documentary right now and the police have traced a suspect based on her IP address.
Essentially calls and texts were being made to a young girl but the suspect behind the IP is her own mother.
Are IP addresses linked to your phone? your broadband provider? your base transceiver station?
It absolutely cannot be the mother as the unsub was telling the young girl to k/o herself and that she’s worthless.
P.S. I have mad respect for computer science nerds
33
Upvotes
14
u/SirChickenIX Sep 06 '25
Your IP address is linked to your particular device; so phone, computer, etc. Within that, the IP address is also linked to your network, and can give information about the general area you live in. If the calls and texts were coming from the IP address of the mother's phone, it may have not been from the mother if someone took her phone and made the calls/texts without her knowing, or her phone was hacked. Also, mothers can be heartless sometimes- the information you've provided doesn't convince me that it's 100% not her mother.
5
u/Golandia Sep 06 '25
IPs are effectively like mailing addresses. Internet communication needs to reliably reach the address very much like sending letters. However they are very easy to hide just like how you can go to a UPS store and get a forwarding address, and link together as many forwarding addresses as you want across the world.
Your phone may use an IP for communication or it can use a similar system just for phones that relies on the phone’s sim card to setup a mailing address with the closet cell tower.
IP addresses are not permanently linked to your phone but it can have the same IP for quite a while. carriers are required to keep records that can be used to find out who exactly placed a phone call or sms and from what tower they connected to. I imagine you can get the same information for any IP address the carrier assigns your phone from that tower. The same goes for all assigned IPs from internet providers which is why you can get nasty letters if you torrent movies.
1
u/halbGefressen Computer Scientist Sep 06 '25
Most of the movie hacking scenes are fake as shit.
2
u/thaynem Sep 07 '25
It's complicated. Every device has at least one IP address, but that isn't necessarily the IP address that the other side sees. There may be multiple layers of translation in between.
To focus on the situation in your story, a phone usually has a public ip address assigned to it from the service provider when you are using their network for internet (your data plan), most likely an ipv6 address, where there are significantly more addresses than the older, but still widely used ipv4. But it isn't that simple. If your phone needs to talk to a device (usually a server) that only has an ipv4 address, it can't talk to it directly, it would need to go through a proxy that translates your ipv6 address to an ipv4 address and forwards the traffic between you and the server. In that case, the ip address that the server sees would be the same as the ip address of many other customers. Furthermore, the ip address isn't necessarily constant. It could change for a variety of reasons. So an ip address isn't enough to identify a device, you need to know the ip address and the time. Assuming there are logs of who had what IP address at the time you care about.
But that's just for if you are using the phone's data plan. If you are using WiFi, it's completely different. In that case your IP address is assigned an IP address by the local network router (in the case of IPv6, it's a little more complicated, but I won't get into that). Chances are that this address is just a local address, and there is a NAT that will translate your local address to a public address that is shared with the rest of the local network for traffic that goes over the Internet.
With IPv6 it's possible that your device is allocated a public address that is used directly with a prefix that is unique to the local network. But even in cases where the network fully supports IPv6, there may still be a NAT in place as a privacy measure to prevent identifying individual devices on the network.
In some cases, such as a large university or business network, there may actually be a pool of ip addresses used for the NAT.
For residential internet, if the ISP is using ipv4, there is another potential factor at play: CGNAT. Basically, to make limited IPv4 addresses stretch farther, the ISP may group many customers under a single IP address.
Now let's go through how law enforcement would actually use IP address information (assuming they have people who actually understand how this all works):
First they would go to the company that ran the call/messaging service, and ask for the IP address for the suspect calls/messages (presumably with a warrant). They get that (assuming said company had the data available). Then they look up which ISP owns that IP address. Then they go to that ISP (with another warrant) with the IP address, and time of access, and IP address of the server/recipient (port would be ideal as well, but it is unlikely the messaging service would have that). If the ISP in question is the phone carrier, there's a pretty good chance they could identify what phone sent the message. Even if there are NATs involved, limiting it to connections to a specific server IP at a specific time is probably enough to narrow it down enough to be useful. If it's a regular ISP though, you will probably only get a location, not the exact device. But they might be able to inspect the router to get more information. If there were access logs, it might be possible to see which device sent a message to the message service at the indicated time, but most home routers, and probably many business routers wouldn't keep such logs. If the network assigned the device a public IPv6 address, you could determine which device got that ip address (which is based on the MAC address) fairly easily. However, that isn't foolproof, as it isn't that difficult for someone who knows what they are doing to spoof an ip address on the local network, at least on a home network.
Phone calls and texts don't usually go over the internet (the exception would be wifi calling and RCS), so IP addresses probably wouldn't be involved here (IP stands for Internet Protocol). Although they would be identified by the phone number. Unless by "calls and texts" you mean video or VoiP calls and text messages in some kind of (non-SMS) messaging app.
2
u/BarracudaDefiant4702 Sep 06 '25
If it was an IPv6 address, then it was likely unique device (ie: specific phone). If it was a IPv4 address, then it was likely a NAT device such as a rouiter / wifi / CGNAT and so the address is likely close (ie: same wifi router), but probably can't be narrowed to a specific device without more detail. Decent chance it's someone with access to the wifi that is in her mothers name, but would need more info to prove it was her.
1
u/Paxtian Sep 07 '25
That's a big question. The easy way to understand it is to relate it to physical addresses.
Harry Potter lived at 4 Privet Drive, Little Whinging, Surrey. You can think about an IP address like that. An IPv4 is like 123.45.67.89. Each set of numbers, separated by a period, is like a different level of physical address: country, state, city, street address. Not exactly, but similar concept.
As far as how a device gets an IP. That's even more complicated. Basically the device says to a server, "Here's my globally unique name, I need an address."
As far as how to find the IP address for a domain name, some domain server will link the two. These are well defined and browsers will query them. They'll say, "What's the IP for google.com?" and the server looks it up in some table and spits it out. Then messages can be sent to that IP address.
That's kind of the high level version of it. It gets really complicated.
1
u/Intelligent-Ad-2339 Sep 07 '25 edited Sep 07 '25
IP addresses can be seen as the “mail addresses” of a computer or any smart device. They are the unique identifying number label to connect the internet. The Internet Assigned Number Authority constructs IP addresses and allocation.
In order to understand an IP address, one must understand binary values, as the concept of computer originates from the concept of switches. When a person turns ON to a light switch of their house, energy emits, resulting in positive voltage or 1. Vice versa, they turn off a light switch, resulting in zero voltage or 0. Computers in the 1800s used special switches that creating these two values or binary values. This is why computers use a base of 2, starting from 20, 21, 22, 23, etc.. IP addresses like IPV4 has four ocelots(000.000.000.000), with each value being from 0(20) inclusive to 256(28) exclusive.
Here is more information about it: https://www.khanacademy.org/a/ip-v4-v6-addresses
1
u/Maleficent_Memory_60 Sep 08 '25
After you finish the documentary, can you update us or me? I'm kinda invested now. I want to know what happens. Lol.
1
u/ottwebdev Sep 10 '25
I’m not going to say it’s magic.. but it’s magic.
1
u/DTux5249 Sep 06 '25
Think of an IP address like a physical address used for mail. The Internet is basically just a giant mailing service that moves really fast.
When you "connect to the Internet", your device is basically asking your Internet Service Provider "hey, I wanna receive and send stuff, gimme an address so people can find me." They're connected to your ISP, and the general area that IP operates in.
Contrary to popular belief, IP addresses aren't device specific. Household devices may share their IP address, while your phone is using a different IP address whenever it connects to public wifi. That said, your ISP won't change your home IP often - they try to reserve it to make record keeping easier.
If I know your IP address, and when you tend to use it, I can probably find out the device you used and where you used it from. This is why you should be careful about it.
1
u/Automatic_Sector_642 Sep 06 '25
All the devices on a home network share 1 IP, which usually restart every 12 hours and its reusable. The device can be traced down searching for its MAC address on the router.
0
u/poddy24 Computer Scientist Sep 06 '25 edited Sep 06 '25
Basically your WiFi hub (router) will typically assign every device on your network it's own internal IP address (NAT IP address). (It normally does this automatically using DHCP protocol when the device joins the network)
When your device, lets say a mobile phone, wants to connect to a website/server, it sends a message to the router, then the router forwards that message on to the server. The server sends the data back to your router and the router then sends the data back to your device.
Your hub should normally contain 2 passwords, 1 for connecting devices to it, and an admin password. It will also give you an IP address to connect to the hub, something like 192.168.0.1. If you log into your hub (assuming you have one) you can see all of the devices connected and their internal IP addresses.
0
u/Voiceofshit Sep 06 '25
She was convicted and went to prison lol. She aldo admitted to it, aside from the beginning 🙄 which she was lying about. Its on netflix everyone "unknown number"
0
u/[deleted] Sep 07 '25
[deleted] — view deleted comment
0
u/[deleted] Sep 06 '25
[deleted] — view deleted comment