Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Setting TTL on Android has no effect #1

Open
jontaylor opened this issue Mar 27, 2015 · 0 comments
Open

Setting TTL on Android has no effect #1

jontaylor opened this issue Mar 27, 2015 · 0 comments

Comments

@jontaylor
Copy link

I have attempted to set the TTL to be higher than 1 but whatever I set it is always set at 1.

My research lead me to think this could be a java bug with having ipv4 and ipv6 on the system at the same time, which they suggest to fix with

        java.lang.System.setProperty("java.net.preferIPv4Stack", "true");
        java.lang.System.setProperty("java.net.preferIPv6Addresses", "false");

However this has no effect and the TTL remains at 1, no matter what I pass into setMulticastTimeToLive.

To make sure its not just an android bug I installing the Cling UDP demo app and that sets a TTL of 4, so it must be possible to have this work.

Many thanks for reading this.

agrieve pushed a commit that referenced this issue Apr 30, 2015
fixed unsigned int warnings for ios
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant