// RemoteAddr returns the remote network address.
RemoteAddr() Addr
ln, err := net.Listen("tcp", ":8080")
if err != nil {
// handle error
}
for {
conn, err := ln.Accept()
if err != nil {
// handle error
}
fmt.Println(conn.RemoteAddr()) // <---------------
go handleConnection(conn)
}