Can router detect the target ip address?

When i connect a https website via router,can the router detect the target ip address?

my pc --> router --> the https website

Yes. It couldn't direct your packets otherwise.

To avoid that you need to use onion routing -> https://torproject.org

2 Likes

Yes, the TLS protocol is belowabove the IP protocol. From "outside" to "inside" the network packet, it's:

Ethernet (MAC address) -> IP (IP address) -> TCP (port) -> TLS (security layer) -> HTTP (application protocol).

So the HTTP protocol content is encrypted by the TLS layer, but the TCP/IP layer is not.

3 Likes

OSI layer model has it the other way around though. Physical is "lowest", if you want to use those terms.

3 Likes

Then we turn the terms around :stuck_out_tongue:

4 Likes

A simpler explanation of what everyone above said:

Your computer/device will resolve a HTTPs website to an IP address, and connect to that IP address through your router, presenting it with the host (domain) and path (of the url). If you're connecting from the router, it's doing all that itself.

Unless you are going through a VPN, your router must see the target IP address. If you are going through a VPN (or Onion), all that will be encrypted traffic to your router – but the VPN's router (or exit node) will see the target IP address.

2 Likes

The question seems to be in the wrong direction...
The router doesn't need to detect the IP from a URL; The router must be given a packet with the destination IP already defined.
All the router needs to do is route that packet towards that destination IP.
[that's what routers do: route packets]

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.