(Not sure if this should be on the unix stackexchange site...)
When I make a socket I use IPv4 and a port number. So if I know both of these, but there's a router set up (on a home network; just learning about sockets, and experimenting), how would I access a client on that LAN? So say I'm at a friend's on their computer, and I want to connect to a socket on the computer at my house that's on my LAN, if I use my public IP address as the socket host, how would it know to go to my computer? Do I need to set up port forwarding or something on the router? (using C and Python, if that matters)