What is the IP address of my local interface that is required by IP_ADD_MEMBERSHIP?
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
In this man page http://man7.org/linux/man-pages/man7/ip.7.html, it is written that IP_ADD_MEMBERSHIP
can be used to join a multicast group. We need to provide, as input, in particular, the IP multicast group address and the IP address of the local interface.
But what is a local interface exactly? What would be an IP address of a local interface?
Is it the address like 127.0.0.1? I know this often called the "localhost" or "loopback" interface. But I am not sure what why it's called "interface", anyway (what is a local interface?). Isn't 127.0.0.1 just the IP address that points to my own computer?
Is the IP address of my local interface the address of my computer on my local area network (LAN): for example, given that I am on a Mac OS X, the "inet" address under
en0
(that can be retrieved using the commandifconfig
)?
How is this IP address of the local interface different from the address of the multicast group?
Local interface implies the existence of global interface, I guess. So, what would be a "global interface"?
So, which address corresponds to the IP address of my local interface that I should pass to
IP_ADD_MEMBERSHIP
?
osx c socket api
add a comment |
up vote
0
down vote
favorite
In this man page http://man7.org/linux/man-pages/man7/ip.7.html, it is written that IP_ADD_MEMBERSHIP
can be used to join a multicast group. We need to provide, as input, in particular, the IP multicast group address and the IP address of the local interface.
But what is a local interface exactly? What would be an IP address of a local interface?
Is it the address like 127.0.0.1? I know this often called the "localhost" or "loopback" interface. But I am not sure what why it's called "interface", anyway (what is a local interface?). Isn't 127.0.0.1 just the IP address that points to my own computer?
Is the IP address of my local interface the address of my computer on my local area network (LAN): for example, given that I am on a Mac OS X, the "inet" address under
en0
(that can be retrieved using the commandifconfig
)?
How is this IP address of the local interface different from the address of the multicast group?
Local interface implies the existence of global interface, I guess. So, what would be a "global interface"?
So, which address corresponds to the IP address of my local interface that I should pass to
IP_ADD_MEMBERSHIP
?
osx c socket api
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
In this man page http://man7.org/linux/man-pages/man7/ip.7.html, it is written that IP_ADD_MEMBERSHIP
can be used to join a multicast group. We need to provide, as input, in particular, the IP multicast group address and the IP address of the local interface.
But what is a local interface exactly? What would be an IP address of a local interface?
Is it the address like 127.0.0.1? I know this often called the "localhost" or "loopback" interface. But I am not sure what why it's called "interface", anyway (what is a local interface?). Isn't 127.0.0.1 just the IP address that points to my own computer?
Is the IP address of my local interface the address of my computer on my local area network (LAN): for example, given that I am on a Mac OS X, the "inet" address under
en0
(that can be retrieved using the commandifconfig
)?
How is this IP address of the local interface different from the address of the multicast group?
Local interface implies the existence of global interface, I guess. So, what would be a "global interface"?
So, which address corresponds to the IP address of my local interface that I should pass to
IP_ADD_MEMBERSHIP
?
osx c socket api
In this man page http://man7.org/linux/man-pages/man7/ip.7.html, it is written that IP_ADD_MEMBERSHIP
can be used to join a multicast group. We need to provide, as input, in particular, the IP multicast group address and the IP address of the local interface.
But what is a local interface exactly? What would be an IP address of a local interface?
Is it the address like 127.0.0.1? I know this often called the "localhost" or "loopback" interface. But I am not sure what why it's called "interface", anyway (what is a local interface?). Isn't 127.0.0.1 just the IP address that points to my own computer?
Is the IP address of my local interface the address of my computer on my local area network (LAN): for example, given that I am on a Mac OS X, the "inet" address under
en0
(that can be retrieved using the commandifconfig
)?
How is this IP address of the local interface different from the address of the multicast group?
Local interface implies the existence of global interface, I guess. So, what would be a "global interface"?
So, which address corresponds to the IP address of my local interface that I should pass to
IP_ADD_MEMBERSHIP
?
osx c socket api
osx c socket api
edited Dec 2 at 14:57
Rui F Ribeiro
38.5k1479128
38.5k1479128
asked Dec 2 at 11:47
nbro
2221513
2221513
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f485474%2fwhat-is-the-ip-address-of-my-local-interface-that-is-required-by-ip-add-membersh%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown