see process listening on port raspbian code example Example: find out which procses is using port linux sudo lsof -i: