python - Ipv6 UDP host address for bind -


i interested socket programming. send , receive ipv6 udp server socket programming raspberry (conneted ethernet cable , opened in putty). after surfing coulpe of sites have got confusion ipv6 udp host address. type of host address should use send , receive message ipv6 udp message.

is link local address

example:

host ='fe80::ba27:ebff:fed4:5691';//link local address tx , rx raspberry

or

host = 'ff02::1:ffd4:5691'

thank much.

regards, mahesh

you can use host ='fe80::ba27:ebff:fed4:5691', assuming have 1 link.

link-local addresses (link-local scope) designed used addressing on single link purposes such automatic address configuration, neighbor discovery or when no routers present. routers must not forward packets link-local source or destination addresses other links.

so if sending data server raspberry pi (1 link), can use link-local scope ipv6 address.

host = 'ff02::1:ffd4:5691' link-local multicast scope, unless have reason send multicast, there no need.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -