promotion image of download ymail app
Promoted
Anonymous
Anonymous asked in Computers & InternetComputer Networking · 2 months ago

Question about client request to a server?

When a client sends application data to a server through a router, is the destination port/IP/MAC that of the router or of the server?

2 Answers

Relevance
  • BigE
    Lv 7
    2 months ago

    Some home routers have DMZ mode and/or port forwarding.  DMZ mode forwards all connections to a internal server.  Port Forwarding allows certain ports to be forwarded to a internal server and port.

    In that case, the server's address has to be the router's external address, since the internal one is private/non-routeable.

    There are other instances where the actual server is not the advertised ip, like a load balancer or a reverse proxy.

    In the enterprise world, it is almost always the server's ip.

    • Commenter avatarLogin to reply the answers
  • L.N.
    Lv 7
    2 months ago

    The destination IP and port is that of the server unless the router is performing destination NAT for the server. If it is, then the destination IP and port are bound to the public interface of the router and packets are forwarded to the server after translation. This is probably th most common way, but It depends on how the network for the server is configured. If the server has an address from one of the private IP blocks assigned behind the router, destination NAT will be performed. If it has a directly routable public IP, destination NAT is not required.  

    • Commenter avatarLogin to reply the answers
Still have questions? Get your answers by asking now.