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 !
Related
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.
i'm developing a small mobile app and i want to receive notifications push from RABBITmMQ, but the problem i don't know how to connect my swift iOS client with RABBITMQ, by the way RABBITMQ is not installed at my local host
i have some credentials configuration to implement it. the problem is the documentation of RABBIT MQ not mentioned how to connect to this remote host not the local.
To connect RabbitMQ to ios you can use this lib:
https://github.com/rabbitmq/rabbitmq-objc-client
About remote connection, follow this example:
https://www.rabbitmq.com/tutorials/tutorial-one-swift.html
here the code:
let conn = RMQConnection(uri: "amqp://user:pass#myrabbitserver.com:5672",
delegate: RMQConnectionDelegateLogger())
Not Able To Connect to XMPP Server Outside the Network (different netwok or WiFi)
Hi all am developing an IOS app which has chat feature am able to connect to XMPP server(Ejabbered) which is installed locally (same wifi for Local mac and device) but when am trying to connect to server which is installed on main live Server its not connecting because thats a different network! how i solve this issue!
Thanks in Advance!
I'm trying to run a socket connection from my iOS app to a bespoke server.
The iOS communicates via UDP to the server on port 12345. The request needs to come from socket 54321 on the device.
How do I open up a socket connection on iOS that communicates to a server on one port but listens via a different port.
I have followed the example on:
https://www.raywenderlich.com/3932/networking-tutorial-for-ios-how-to-create-a-socket-based-iphone-app-and-server
But this does not cover the local port
I have also looked at the documentation on https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/NetworkingTopics/Articles/UsingSocketsandSocketStreams.html but I am finding it unclear due to my limited knowledge of socket connections.
I am currently attempting to use https://github.com/robbiehanson/CocoaAsyncSocket/wiki/Reference_GCDAsyncSocket
But I don't seem to be able to control the local port.
Thanks in advance
Normally you don't care about the sending socket, but when you create your AsyncUDPSocket you can use bindToPort: to set its port. Then use sendData:toHost:port:timeout:tag: to send the data
I am developing a backend server for an app using PyCharm. This runs on my laptop as 127.0.0.1:8000
I need to access this server for testing from an iPhone. This is connected by wifi to my local network to which the laptop is also connected.
I have tried entering http://mycomputer.local:8000 in safari on the iPhone but I get the message "Safari could not open the page because the server stopped working. I am using the real name of my computer instead of 'mycomputer'.
I am running OS X Yosemite so Web Sharing is not available in System Preferences.
How can I give access to the 127.0.0.1:8000 server to my iPhone?
When you say "backend server", what is the Python project written in? Django, Flask, Pyramid, something else?