I am finally planning to code for my Dictionary app that I had in mind, scraping google's dictionary entries.
ERROR: Another instance is running
Great! so I am following the common process killing procedure: I run
lsof -i tcp:5000 to see which process(es) are listening to localhost:5000:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME mtbserver 81177 amir 0u IPv6 0xeca842647ccf293f 0t0 TCP localhost:commplex-main->localhost:53483 (CLOSED) mtbserver 81177 amir 1u IPv6 0xeca842647ccf293f 0t0 TCP localhost:commplex-main->localhost:53483 (CLOSED) mtbserver 81177 amir 2u IPv6 0xeca842647ccf293f 0t0 TCP localhost:commplex-main->localhost:53483 (CLOSED)
Then I see this
mtbserver process and I start digging around it. I found out a nice group discussion on Xamarin forum around
mtbserver. It turns out it is the process created by Xamarin's iOS that I remember deleting a while ago but apparently not thoroughly enough.
Navigate to your
/Library/LaunchAgents (do not confused it with the one on your user's folder, i.e.
~/Library/LaunchAgents). Apparently, Xamarin installs a file called
com.xamarin.mtvs.buildserver.plist. First, remove this file to prevent launching the
mtbserver again. Second, reboot your system. This should kill the process on port 5000 completely. 😃😃😃
PS: I submitted an issue to Xamarin's Github repo so they can fix it, I think this is a shortcoming of their uninstall procedure.