When a client connects to the server, where does the client ip address come from?
a client must connect to network first,means that client must obtain ip address (if you havent set it to static)
the protocol doing this is DHCP (Dynamic host configuration protocol),
the client (f.e your laptop) runs a dhcp client,dhcp server checks its pool , gives away one ip
and sometimes updates DNS (both reverse and forward lookup zones)..
dhcp is working with TCP/IP protocol suite...
after that when you want to connect to a server it depends of which protocol you want to use,
anyway after the ip handover the client is considered (at ip level) member of the network...
more info about dhcp you can visit wikipedia 😉
Michael.