Is administrator permission required when parsing ICMP messages using raw sockets?

Qinshun Li 0 Reputation points
2025-05-12T02:24:54.29+00:00

We need to use ICMP or UDP to implement Traceroute to detect nodes on the network. Although the raw socket can be avoided during the sending UDP message stage, in the message reception stage, the raw socket must be used to parse ICMP messages.

It has been implemented on the XBox development machine and tested normally. But I don't know if there is a difference between the XBox development and the client machine in terms of administrator rights, and whether the client machine needs to apply for administrator rights to run the program normally.

If not, is there any way to avoid administrator rights to complete the Traceroute work?

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,932 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RLWA32 48,671 Reputation points
    2025-05-12T08:21:46.1566667+00:00

    From Microsoft's documentation at TCP/IP raw sockets

    rawsocket

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.