Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot receive udp data on iOS 10.1.1 #124

Open
SuhanKoh opened this issue Feb 8, 2017 · 2 comments
Open

Cannot receive udp data on iOS 10.1.1 #124

SuhanKoh opened this issue Feb 8, 2017 · 2 comments

Comments

@SuhanKoh
Copy link

SuhanKoh commented Feb 8, 2017

Hi, I am using the example code posted on the README,

var listenPort = 11011;
var receiver = new UdpSocketReceiver();

receiver.MessageReceived += (sender, args) =>
{
    // get the remote endpoint details and convert the received data into a string
    var from = String.Format("{0}:{1}", args.RemoteAddress, args.RemotePort);
    var data = Encoding.UTF8.GetString(args.ByteData, 0, args.ByteData.Length);

    Debug.WriteLine("{0} - {1}", from, data);
};

// listen for udp traffic on listenPort
await receiver.StartListeningAsync(listenPort);

and I cannot receive data via iPhone on iOS 10.1.1, but it works with Android, did I do anything wrong?

@rdavisau
Copy link
Owner

rdavisau commented Feb 8, 2017

Howdy,

Can you talk more about your setup? e.g. - are you using iOS device or simulator? what network is the device/simulator running on? what are you sending the udp packets from and what network is that device on? If another computer, is it inside a vm?

@SuhanKoh
Copy link
Author

SuhanKoh commented Feb 8, 2017

I am using iPhone 6s and iPhone 7, it is running on a router, basically computer <-> router <-> phones. Not using a VM, it works with Android phones, but not iOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants