# Addressing

DevFeed: [Addressing](<https://devfeed.tech/articles/addressing-38990.md>)

Original publisher: [Read original article](<https://idea.popcount.org/2019-12-06-addressing>)

Author: Marek

Published: 2019-12-05T23:00:00Z

Content type: tutorial

Language: en

Sources: [Marek Majkowski](<https://devfeed.tech/sources/marek-majkowski.md>)

Topics: [Linux](<https://devfeed.tech/topics/linux.md>), [Unix](<https://devfeed.tech/topics/unix.md>), [systems](<https://devfeed.tech/topics/systems.md>), [Parameter](<https://devfeed.tech/topics/parameter.md>)

Tags: [linux](<https://devfeed.tech/tags/linux.md>), [parameter](<https://devfeed.tech/tags/parameter.md>), [socket](<https://devfeed.tech/tags/socket.md>), [unix](<https://devfeed.tech/tags/unix.md>)

## AI overview

A tutorial on socket addressing on Linux, covering AF_INET, AF_INET6, and AF_UNIX address families, socket address structures, and converting IPv4 and IPv6 addresses between text and binary forms. The supplied text is truncated before the IPv6 discussion is complete.

## Source excerpt

Addressing Articles from this series: - Creating sockets on Linux. - Addressing of AF_INET, AF_INET6 and AF_UNIX sockets. A freshly created socket isn't very useful. We have to tell it to either listen for incoming data, or connect to a remote peer. To achieve anything useful we need to perform a syscall dance, which involves either or or both. Among others, and syscalls take a socket address as a parameter. Before going into these syscalls we must discuss what exactly the address is.