AIR for Android SocketServer over WiFi - actionscript-3

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/

Related

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.

Secure webSocket on local network for android browsers

I am trying to run a web on my local network that connects to the server through a websocket. When I test it from the same machine that is serving the web (localhost) it works fine but when I try to access the web from my android phone with chrome I get "net::ERR_CONNECTION_REFUSED". It seems that chrome refused all connections to localhost that are not certificated.
I have installed a self certification with the hope that using secure websockets and the certification it would work... Now I can access from localhost as https but I am unable to access from other devices without geting "This Connection is Untrusted"
There is any way to create a certified local network where I can browse to https://192.168.0.x (server IP) from other device and use websockets or secure websockets?
I am open to read other solutions where websockets work in a local network from an android browser.

Firefox/Chrome unable to connect to sites on VMWare Guest

I'm seeing this problem connecting to most sites when connected to our office LAN.
I'm running a VM (using VMWare Workstation 15 Player) running Win10. The host is also Win10.
Your connection is not secure
The owner of www.google.com has configured their web site improperly. To protect your information from being stolen, Firefox has not connected to this web site.
This site uses HTTP Strict Transport Security (HSTS) to specify that Firefox only connect to it securely. As a result, it is not possible to add an exception for this certificate.
Advanced shows
Error code: SEC_ERROR_UNKNOWN_ISSUER
The network connection is "NAT: Used to share the host's IP address".
I had Avast installed and uninstalled it so ensure it was not blocking the connections.
I do not get this error on the host machine
If I connect the host machine to our corporate VPN or use a Wifi connection, I do not get this error.
The date and time are also correct.
Is there something that VMWare Player is doing to the connection?
Firefox Quantum 65.0.2
Chrome Version 72.0.3626.121
Chrome
Firefox

StreamSocketListener and localhost

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

connect bluetooth shield with windows phone 8

i'm trying to listen for incomming bluetooth-connections from a bluetooth sheild to my WindowsPhone8 device. Is there any way to connect WindowsPhone8 with bluetooth sheild?
As long as the remote device supports Bluetooth Serial Port Protocol (BT-SPP) and supports pairing, you should be able to open a BT-SPP socket to it from WP8.
Here's a code sample of connecting to Sphero # http://www.developer.nokia.com/Community/Wiki/What%27s_new_in_Windows_Phone_8#Bluetooth:_Phone_to_device
And here's a code sample of connecting to Mindwave Mobile Headset # http://metroeeg.codeplex.com/wikipage?title=Standalone&referringTitle=Home