func GetNameByPort(port int64) (string, error) {
	lines, err := getData()
	if err != nil {
		return "", err
	}
	for _, str := range lines {
		lineArray := removeEmpty(strings.Split(strings.TrimSpace(str), " "))
		src, err := strconv.ParseInt(strings.Split(lineArray[1], ":")[1], 16, 32)
		if err != nil {
			return "", err
		}
		dst, err := strconv.ParseInt(strings.Split(lineArray[2], ":")[1], 16, 32)
		if err != nil {
			return "", err
		}
		if dst != wellKnownPort || src != port {
			continue
		}
		pid, err := getPid(lineArray[9])
		if err != nil {
			return "", err
		}
		process, err := getProcess(pid)
		if err != nil {
			return "", err
		}
		log.Println("returning: ", process)
		return process, nil
	}
	return "", errors.New("not found port")
}
GetNameByPort returns the process from the port number
package senderresolver
import (
	"errors"
	"io/ioutil"
	"os"
	"path/filepath"
	"regexp"
	"strconv"
	"strings"
	"github.com/lf-edge/edge-home-orchestration-go/internal/common/logmgr"
)
const (
	procNetTCP    = "/proc/net/tcp"
	wellKnownPort = 56001
)
var (
	processInfoPath = "/process"
	log             = logmgr.GetInstance()
)