Firewall issue with Webserver in UWP on Raspberry Pi 3

0 votes
I'm using a sample application of a Webserver to handle incoming requests through TCP with a Port. Here the code for the sample application: https://incredibits.io/project/windows-10-iot-internet-of-things-tips/windows-10-iot-raspberry-pi-web-server

While debugging the UWP application on my Windows 10, I can access the local IP and the application gets an incoming request, which returns some data to another client computer. But, when I deploy this to my Raspberry Pi running on Windows 10 IoT Core, I'm unable to access the application from my client computer.

Now, I'm not sure if this is a problem due to my Pi's firewall or if it's something else entirely. I'm able to access the IoT Core's Web interface on port 8080, but not my application running on port 80.

If any ideas at all as to what could be the issue here, please share it!
Oct 12, 2018 in IoT (Internet of Things) by Bharani
• 4,660 points
1,154 views

1 answer to this question.

0 votes

Here's what could be happenning:

You port hasn't been opened up in the Raspberry Pi's Firewall. Now, I don't know how to add a rule to the Firewall but after some help and a little research, this what I found:

Log into the Pi through PowerShell

Enter-PsSession -ComputerName MyRaspberryPi-Credential MyRaspberryPi\Administrator

After that, manually add the Firewall opening of the port you're using, should be port 8080 as per your description.

netsh advfirewall firewall add rule name="Raspberry Pi Webserver" dir=in action=allow protocol=TCP localport=8080

And, you should, now, be able to access the port on your Raspberry Pi!

Plus, It seems like this issue with the Firewall not being opened is actually a known issue by Microsoft already. They write about it in their Release notes for the Insider Preview version 14295, which is the OS you're most probably using on your Pi: http://ms-iot.github.io/content/en-US/win10/ReleaseNotesInsiderPreview.htm

answered Oct 12, 2018 by DataKing99
• 8,250 points

Related Questions In IoT (Internet of Things)

0 votes
1 answer

Issue with connection on Watson IoT Out node on Raspberry Pi

The frequent disconnects could be due to ...READ MORE

answered Dec 20, 2018 in IoT (Internet of Things) by Shubham
• 13,490 points
1,043 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Refactoring multi thread program on raspberry pi with sensors

Before re-engineering your application, you should narrow ...READ MORE

answered Sep 11, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,904 views
0 votes
1 answer

Deploy my Windows 10 IOT core application locally!

Of course, you, can! That is, in ...READ MORE

answered Jul 17, 2018 in IoT (Internet of Things) by nirvana
• 3,130 points
1,139 views
0 votes
1 answer

Finding the Unicast, DNS and Gateway Address in UWP

Try the PInvoke api methods from Iphlpapi.dll. ...READ MORE

answered Aug 20, 2018 in IoT (Internet of Things) by nirvana
• 3,130 points
934 views
0 votes
1 answer

Display time in a Windows Core IoT app with a clock!

It is possible, but you should understand ...READ MORE

answered Jul 10, 2018 in IoT (Internet of Things) by nirvana
• 3,130 points
1,573 views
0 votes
1 answer

Autostart published Application on Windows 10 IoT

It can be done by making changes ...READ MORE

answered Jul 13, 2018 in IoT (Internet of Things) by DataKing99
• 8,250 points
1,845 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP