StreamSocketListener and localhost - windows-runtime

I'm using the following code to set up a StreamSocketListener on my universal 8.1 app:
_listener = new StreamSocketListener();
_listener.Control.QualityOfService = SocketQualityOfService.Normal;
_listener.ConnectionReceived += OnConnectionReceived;
await _listener.BindServiceNameAsync("8776");
This runs without any problems, however when I try & browse to http://localhost:8776 (or directly via ip address or machine name), the request times out.
In netstat I can see the 8776 port is open & listening, I've enabled loopback exemption, disabled my firewall, but I'm still not able to connect. This is true for both the Windows 8.1 and the Windows Phone 8.1 app.
When I try to connect from another machine, it works without problems. Is there any setting/configuration I can use so I'm able to connect from the same machine?

Windows RT blocks loopback access between two WinRT applications.
Network communications using an IP loopback address cannot be used for
interprocess communication (between two different apps) in a Windows
Runtime app since this is restricted by network isolation. Network
communication using an IP loopback address is allowed within an app
within the same process for communication purposes.
More info and workaround here

Related

Connect to SSRS from different computer on home network

I am trying to access the SSRS web portal. I have SQL Server and Report Server installed on laptop with Windows 10. I want to access this from another laptop running windows 11 that is connected to the same home internet network.
The web portal works fine when I access it from the computer running Report Server:
But when I try to access the url from another the other computer on the same network, the page just doesn't load:
I tried to follow the instructions from this site: https://askgarth.com/blog/why-cant-i-access-my-ssrs-site-remotely/
I opened port 80 TCP protocol in windows firewall to allow connections.
I think that the issue may be the profile to which the rule applies:
The instructions I tried to follow said to open up the Domain. I also tried the Private option and still no luck.
I'm nervous about opening up ports on my firewall. But how can I set this up to access the Report Server from another computer on my network?
I've just checked my setup which is basically the same...
'Server' Desktop running Windows 10 Pro: Hosts SQL Server 2019 and SSRS
'Client' Desktop running Windows 11: Accessing SSRS from here
I checked the 'server' PC and the only SQL specific ports that are open are TCP port 1433 to allow me to access the database engine via SSMS etc from the 'client' PC and TCP port 80 (both are setup to domain + private although domain should be irrelevant)
I don't normally access the SSRS portal from the 'client' but it did work in as far as it said I do not have access to any reports, but it was showing the web portal page itself just fine.
You have probably done all this but here are a few things you could try...
Check if your version of Win10 is supported. If it's Win10 home for example it may not support everything required but this is just a guess.
Ping the server from the host and make sure you get a response (assuming PING response has not been turned off)
Check server firewall allows incoming on ports TCP 80 and TCP 1433 (1433 should not be required but you can always switch this off later)
Attempt access using the server ip e.g. http://192.168.1.123/Reports
If this all fails, turn off the windows firewall and test again. You can always disconnect your router from the internet whilst you do this to be safe. If this works then you at least know it's a firewall issue.
Check if you have any 3rd party anti-virus software that might be acting as a firewall - turn off and test again.

Error during Flutter connection to localhost DB

Am trying to connect to connect flutter to local xampp, it executes with the above error, any help is appreciated
SocketException: OS Error: Connection timed out, errno = 110, address = 192.168.1.254, port = 38614
1- if you are using emulator use 10.0.2.2 instead of 192.168.1.254
2- if you are using physical device make sure the device is connected to server first without the flutter app by accessing the ip of the server from your device or 10.0.2.2 if emulator
3- try disabling your firewall and antivirus
Most likely your emulator doesn't have access to IP 192.168.1.254 on your host machine.
You can test this by opening up Chrome in your emulator and trying to visit: http://192.168.1.254
The Android emulator provides access to your host machine through IP 10.0.2.2. So if you have a website running at localhost (127.0.0.1) on your host machine, you should be able to access that from Android emulator Chrome browser using http://10.0.2.2
Android emulator also delegates DNS queries via 10.0.2.2. So if your host machine hosts file (C:\Windows\System32\drivers\etc\hosts or /etc/hosts on Mac) has domains specified (such as 192.168.1.254 myxampp) then you can edit your emulator's hosts file to delegate the domain lookup to your host machine hosts file using:
10.0.2.2 myxampp
Here are some instructions on how to edit your emulator's hosts file if you decide to go that route.

'Server DNS address could not be found'

I am a complete newbie and have just started using a Raspberry Pi to run the latest version of Home Assistant. I am currently running it in a headless configuration and can connect to hassio.local:8123 through Chrome on my laptop with no issues. However, when I try to reach the same address on Chrome on my desktop (all devices are connected to the same wireless network) I get a 'server DNS address could not be found' error message. I have tried flushing DNS and manually configuring a DNS server but no luck. I have a disabled network adapter connection called 'Ethernet' that I cannot remove and I wonder if this is somehow causing part of the problem.
Dan, Try to check if there is connectivity to the Raspberry Pi first, by pinging both by name and by IP address, this would give you an idea if the desktop is able to talk to the RP or not. Next is to try using the ipaddress.local , if still no dice, check if the specific port 8123 is blocked on the desktop side.

Consuming WCFREST Service from Windows Phone 8 using WebClient

with the reference to the Link
I am getting an error while running the application.
I am unable to find the solution to the problem.
May be you getting error because you are trying to call web service from local host. Host your web service some where in Http(Url). Windows phone emulator doesn't allow to call service from local host.

AIR for Android SocketServer over WiFi

Developing a multiplayer game for Android and using the AIR SocketServer class to communicate between server and client AIR applications.
On Windows 8 I am using Virtual Router Plus to set up my PC laptop(where the server app is running) as a wifi hotspot.
I run ipconfig in cmd after my wifi is running to grab the ipv4 IP address under 'Wireless LAN adapter Local Area Connection'
This is the IP I bind to in the server app and connect to in the client app.
If I launch both server and client on the same machine, everything works fine.
When I install the client app on my Android device, I am unable to establish a socket connection. The WiFi is running properly on my Android device.
Is a policy file necessary on the server machine when creating socketserver connections over a local wifi network?
If so, shouldn't the client app be throwing a security error when it tries to connect?
I am lost as to what my troubleshooting steps should be. ANY tips or feedback appreciated!
This happend because, the AIR Socket communication works only in Desktop application.
Try this native extension, it works perfectly form me:
http://blog.aboutme.be/2011/12/14/udp-native-extension-for-air-mobile-now-with-android-support/