I am trying to do some tries with xamarin android and gRPC.
I have my service running in my computer, and I have a net standard 2.1 library with the gRPC client. If I use this library in a wpf application in the same computer, I get response from server, but if I use this library in my xamarin proyect, that I run in a virtual machine with android 8.0, I get the message error connection closed by peer.
In the xamarion prject, the address that I am using is https://10.0.2.2:5001. I am using the IP 10.0.2.2 because if I am not wrong, it is the IP that is used to communicate with localhost.
How could I solve this problem?
Thanks.
PD: I have set permissions to application to can use internet.
PD: I have realized that if my WPF application I use https://localhost:5001 it works, but if I use https:x.x.x.x:5001 where x.x.x.x is the IP of the computer, it gives the same error.
Xamarin works with native nugets Grpc.Core and Grpc.Core.Api
It wont work with Grpc.Net.Client
Find more on
https://learn.microsoft.com/en-us/aspnet/core/grpc/client?view=aspnetcore-3.1
Calling gRPC over HTTP/2 with Grpc.Net.Client is currently not supported on Xamarin. We are working to improve HTTP/2 support in a future Xamarin release. Grpc.Core and gRPC-Web are viable alternatives that work today.
Related
In Delphi 10.4.1 I'm trying to build an Android application that connects to an instance of Interbase running on my laptop (which I can connect to remotely from my desktop). I get the exception:
Project Project6.apk raised exception class EIBNativeException with message '[FireDAC][Phys][IBLite]Unable to complete network request to host "192.168.1.58".
Failed to locate host machine.
Undefined service gds_db/tcp.'.
Connection Parameters:
Database=192.168.1.58:C:\Users\Public\Documents\Embarcadero\Studio\21.0\Samples\data\employee.gdb
User_Name=sysdba
Password=masterkey
DriverID=IB
Everything works fine if I connect to a local database, or run the app on Windows.
I've seen this demonstrated in XE7 (https://youtu.be/XAZQfYzvxHc?t=1384), but can't get it to work in 10.4.1.
What am I doing wrong?
If InterBase on your Windows machine is running on default instance 'gds_db', then it is probably using TCP socket on port 3050. Try changing your Android application's Database URL to the following so it includes the target 3050 port number. I am assuming that it is not automatically able to resolve 'gds_db' name on Android since the TCP socket service name is not defined on Android. On Desktop platforms like Windows, Linux, macOS, the InterBase installer updates the system services file to provide the translation of 'gds_db' name to 3050. Just providing a TCP socket port number is a failproof way to target an endpoint without need for name resolution.
Database=192.168.1.58/3050:C:\Users\Public\Documents\Embarcadero\Studio\21.0\Samples\data\employee.gdb
I have Open Media Vault set up on Raspberry Pi. I have connected an external drive, created the required shared folders, enabled SMB/CIFS.
Everything works great on Windows machine and Android devices, however, if I try to connect to the share through MacOS or iOS (files app), I get an error:
MacOS: There was a problem connecting to the server “raspberrypi”.
iOS: The operation couldn't be completed. Invalid argument
OMV is a default latest installation, no custom configs or anything.
The external drive is exFat type, it was working fine on pure Samba server before (without OMV).
Any ideas how can I fix this or at least how can I debug why I can't connect from MacOS and iOS?
I don't know if problem still persists on your side but enabling FTP server solved the issue for me.
Fix:
sudo kextload /System/Library/Extensions/smbfs.kext
https://developer.apple.com/forums/thread/659331?login=true
My App has now gotten rejected twice for not working on an IPv6 network on a device running IOS 10.2 My App was built using these resources and I was hoping someone could give me some insight on where to start looking.
Server:
Amazon EC2 t2.micro
IP address is IPv4 however the server says IPv6 is enabled
All traffic is allowed in security groups
Windows Server 2016
Libraries:
LibGDX 1.9.5
Kryo 2.23.1-SNAPSHOT
Kryonet 2.18
MobiDevelop's RoboVM fork 2.3.0
Please let me know which of these is most likely the culprit so I can proceed to fix it thank you!
I got this fixed. I was originally connecting to my servers by the IP address and have now switched it to the DNS. Works fine and made it through app review!
I developing a mobile application using React Native. For testing, I run the application on a physical iPhone which means pointing the device to the React Native server running on port 8081 of my laptop. As a remote developer, I often work in coffee shops, libraries, or other public places with WiFi.
My issue is some of these public places block traffic between devices so even if the phone and development machine are on the same network, the mobile device is unable to reach the React Native server.
One remedy I have found is to create a private network between the iPhone and my Macbook. While this solved the issue of connecting to the React Native server, it cuts my laptop off from a public internet connection so this is not a viable option.
Is there a solution to this problem which retains a public internet connection for my devices and also allows comunication between the phone and the React server?
https://ngrok.com allows you to setup secure tunnels to localhost that you can access on the public internet.
Test mobile apps against a development backend running on your
machine. Point ngrok at your local dev server and then configure your
app to use the ngrok URL. It won't change, even when you change
networks.
One of my iOS developer is trying to connect to my Chat Application server which is developed using Socket (Java).
When he tries to connect to Server using GCDAsyncSocket during debug I can see readStreamHeader() is executing which is throwing StreamCorruptedException.
Same thing is happening when I do telnet using cmd : telnet localhost 13000
I'm able to connect with my java created client application but not with iOS client. I believe socket in java and in iOS have different way of communication. Please HELP !