Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't discover device using SsdpDeviceLocator #19

Closed
markjerz opened this issue May 19, 2016 · 5 comments
Closed

Can't discover device using SsdpDeviceLocator #19

markjerz opened this issue May 19, 2016 · 5 comments

Comments

@markjerz
Copy link

Hi,

So, I've got an application running that publishes itself using SsdpDevicePublisher. I have another application running SsdpDeviceLocator.

Now when I just run both these apps from the same windows machine the locator discovers the publisher. However, if I run the publisher on a raspberry pi (via mono) I can't see it from the locator.

Any thoughts on why this might be?

The odd thing is that windows can see the raspberry pi service as it shows up in my network folder!

@Yortw
Copy link
Owner

Yortw commented May 19, 2016

I want to help solve this problem, but I'm unfamiliar with Mono and Linux, I don't have Mono setup anywhere and I don't own a Linux device I can do dev on, so at the moment the best I can do is provide suggestions (sorry).

I think the fact the Pi shows in Windows is probably irrelevant except to say it's on the network - I believe Windows usings a number of different networking protocols, so it could be finding the Pi through some other mechanism - unless it's only showing up when you run the publisher?

Here's a few things I would check;

  • Is there any kind of firewall etc. on the Pi that might be blocking the UDP messages used by SSDP? For that matter, is there the firewall on the other machine is blocking the outgoing UDP messages?
  • Is there any other SSDP software running on the devices? Windows for example has an SSDP service that sometimes runs, and if it runs first it often swallows all the SSDP messages and doesn't share with anyone else. I guess this could happen on Linux too?
  • Do both machines have IPV4 addresses? At the moment RSSDP doesn't support IPV6, so it's not going to work if either of the machine is IPV6 only.
  • Are both publisher and locator binding to the same adapter/subnet? If either the Pi or your other machine have multiple network adapters in them, it's possible they're broadcasting/listening on different subnets/networks. Try using the overloaded constructors to specific the local IP you want to bind to, and ensure the IPs your provide to both are on adapters/subnets that should see each other.

Let me know the answers to those issues and if we haven't solved it I'll do some more thinking.
Thanks.

@markjerz
Copy link
Author

Wow, thanks for the prompt and superb response. I'll try some of those things tomorrow and let you know.

In windows explorer it's actually showing the service that I'm publishing, not just the pi, which is promising at least!

On 19 May 2016, at 21:50, Troy Willmot notifications@github.com wrote:

I want to help solve this problem, but I'm unfamiliar with Mono and Linux, I don't have Mono setup anywhere and I don't own a Linux device I can do dev on, so at the moment the best I can do is provide suggestions (sorry).

I think the fact the Pi shows in Windows is probably irrelevant except to say it's on the network - I believe Windows usings a number of different networking protocols, so it could be finding the Pi through some other mechanism - unless it's only showing up when you run the publisher?

Here's a few things I would check;

Is there any kind of firewall etc. on the Pi that might be blocking the UDP messages used by SSDP? For that matter, is there the firewall on the other machine is blocking the outgoing UDP messages?

Is there any other SSDP software running on the devices? Windows for example has an SSDP service that sometimes runs, and if it runs first it often swallows all the SSDP messages and doesn't share with anyone else. I guess this could happen on Linux too?

Do both machines have IPV4 addresses? At the moment RSSDP doesn't support IPV6, so it's not going to work if either of the machine is IPV6 only.

Are both publisher and locator binding to the same adapter/subnet? If either the Pi or your other machine have multiple network adapters in them, it's possible they're broadcasting/listening on different subnets/networks. Try using the overloaded constructors to specific the local IP you want to bind to, and ensure the IPs your provide to both are on adapters/subnets that should see each other.

Let me know the answers to those issues and if we haven't solved it I'll do some more thinking.
Thanks.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub

@Yortw
Copy link
Owner

Yortw commented May 19, 2016

No problem :)

"In windows explorer it's actually showing the service that I'm publishing, not just the pi, which is promising at least!"

Ah, well in that case it's likely a problem on the locator end. Checking the firewalls, bound IP and the Windows SSDP service are all still good idea.s

@Yortw
Copy link
Owner

Yortw commented Jun 28, 2016

Hi, any luck?

@Yortw
Copy link
Owner

Yortw commented Jul 21, 2016

Closing due to lack of response. Please feel free to reopen if this is still an issue for you. There have been some other similar issues with solutions posted, so you might like to try check those first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants