Ukarahan
Ukarahan

Reputation: 39

Windows 10 iot Raspberry Pi 2 Tcp Connection c++

I have write server/client app. between raspberry pi2 and windows PC.(Raspi is server). If I placed both server and client program on raspberry pi2 then it works, but when client is run from windows pc then it I couldn't connect , got error timeout(10060). I am simply connecting pc and pi2 through a switch, firewall of my PC is disabled. My sample code as same as windows https://msdn.microsoft.com/en-us/library/windows/desktop/ms737889(v=vs.85).aspx

Thank you for your time

Upvotes: 0

Views: 1421

Answers (1)

Ukarahan
Ukarahan

Reputation: 39

I have found solution. We need to add a firewall rule to Windows 10 iot.

like: netsh advfirewall firewall add rule name="Open Port 80" dir=in action=allow protocol=TCP localport=80

Upvotes: 2

Related Questions