Why can my iMac see my Macbook pro with 2 different icons on the network sharing? (as if it were 2 devices) I recently noticed that my iMac lists my macbook pro with 2 different icons (the normal laptop one and a generic pc one)



I am worried this means i have a server running on the background or some other possible security issue.

I disabled file sharing completely (SMB and AFP) and they both disappeared, but im still worried this might happen at some other time without my knowledge thus being a security issue.
You answered it yourself. You had both AFP and SMB network sharing protocols enabled. Thus your mac was presented as two network devices. Notebook icon is for AFP shares and generic PC one is for SMB.

No need to worry about that since it is normal behaviour.