Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Android: Ping fails with "icmp open socket: Operation not permitted"

Discussion in 'Multiplayer' started by any_user, Oct 5, 2015.

  1. any_user

    any_user

    Joined:
    Oct 19, 2008
    Posts:
    374
    When using the Unity Ping class on android, it fails with this error:

    Code (CSharp):
    1. E/Unity   (20391): ping: icmp open socket: Operation not permitted
    2. E/Unity   (20391):
    3. E/Unity   (20391):
    4. E/Unity   (20391): (Filename: ./Runtime/Network/NetworkUtility.cpp Line: 1020)
    Is it a bug or is there another way to get the ping to an ip? Tested on a Samsung Galaxy S3 with Android 4.3, Unity 5.1.4 (preview).
     
  2. any_user

    any_user

    Joined:
    Oct 19, 2008
    Posts:
    374
    Ok, submitted a bug report: 734124

    We've had exactly the same issue on Linux quite some time ago, where it was fixed.
     
  3. any_user

    any_user

    Joined:
    Oct 19, 2008
    Posts:
    374
    Does really nobody use ping on android?? How can I move this thread to the Android forum?
     
  4. abarakov

    abarakov

    Joined:
    Jan 28, 2014
    Posts:
    1
    I reproduced exactly the same mistake.
    The situation is completely analogous to the described here
    The device Samsung Galaxy S3 with Android 4.3,
    The latest version of Unity 5.3.4f1
    Error only with Galaxy S3, on our other devices ping works fine