Computer has static IP 192.168.1.103
All connected wired over ethernet
Macbook Pro
Apple TV3 Firmware 7.2
As I said it was working fine and now this. I’m lost as to why. I checked the trouble shooting pages and as far as I know I do not have a DNS server running on my Macbook.
But, saying that, in my network settings, under the DNS tab of the advanced settings it lists two ip addresses (192.168.1.1 and 0.0.0.0) in the DNS servers list but I can’t remove them. I can add one, 8.8.8.8 for example and it is then listed as the only DNS server. But when I remove 8.8.8.8 the other IPs show again.
What could be causing it to have gone from working to not working? If it is a DNS server problem how do I fix it?
One possibility: PlexConnect is actually already running. This first instance would already occupy port :53 and thus preventing the other from running.
Check Activity Monitor, or “ps -ef” and look for PlexConnect processes.
Well the system is saying there is something already bound to port 53. So you might have installed another DNS server in the meantime. Maybe “bind”. You could try and see what the following gives you when you enter it on the console:
lsof -i4TCP:53
This should show what process is running against that port. From there on, you could kill that process and make sure it won’t start again.
Ok, I entered “ps -ef” in terminal and the following was included in the listings among the other results… Is this a history of activity? It’s all alien to me.
The ps -ef shows you the current running processes. A little bit the same as the activity monitor in OS X, just more details. When starting, each process will get a pid (process id), which you can see as the second number on each line. So your bash script has pid 75. The first python process has pid 349, but got started by pid 75 (which is the third number).
Since the last python got started by pid 349, you can see that all three plexconnect processes are related (number 75 started 349, number 349 started 364, you see it is a tree).
If you enter
sudo kill 75
you will kill the master process. This should kill the other two as well. If not kill them with
sudo kill 349
and
sudo kill 364
Check that it worked by entering:
ps -ef | grep -i plexconnect
The ‘grep -i’ searches the output of ‘ps -ef’ in a case Insensitive way. If this still returns processes, kill them! As soon as there are no processes left, start your PlexConnect again and the errors will probably be gone.
As a last note, the lsof -i:53 should have no space between the -i and the :53.
Ok, cool. Seems to be working now. I typed "sudo kill 75"and it asked for the password. I then restrarted terminal and typed "sudo “/Applications/PlexConnect-master/PlexConnect.py” and it started runnning ok. Streaming works again.
Thanks for your help SingleServingSociety and baa…
Now all I need is to get the process to start on launch. I can’t get the launchdaemon to work. I don’t even see a launchdaemon in my library.
Followed the instructions on the wiki. Seems to work now. Still not sure how. Not complaining. Will leave it alone until it stops working. Hopefully never.