I wrote a program that does packet communication with a server and something has been in the back of my head for sometimes : When I analyze packets with WS I can see in the header first off two MAC addresses. One is my laptop MAC and the other one seems to be my router's MAC (would you please confirm) while I would have assumed that the other MAC would be the server's MAC.
The ip versions of the conversation I use is ipv4. the source ip is my IP under the network (which I have no problem with) however the destination ip is the server's IP which at first I was fine with, but now that I believe the MAC is my router's I would have assumed the destinaton IP to be my router (but then how would my router know when to send the packet.. so yeah.).
I have browsed around and I couldn't find what I wanted to discover which is when are the packets edited on the fly, if they are. When I received a packet the destination is my laptop's MAC and the sourc is my router's MAC which only makes sense if the packet was modified by my router when he received it, assuming then that the server doesn't even know my laptop's MAC. Then I guess that between the server and my router, the packet's IPs are 1/server ip and 2/router ip, but once the packet reaches the router the router's ip is replaced by my laptop's ip under the network, yes ?
If you could confirm or deny those assumptions and maybe point me to a website which holds these infos I'd be very gratefull.