Why use link-local addressing for HSRP in IPv6?

I have scoured the internet for an answer to this question, and am no closer to having it answered.  Am hoping someone here can help!
* Why do we use link-local (or autoconfig) addresses for the standby IP in FHRPs?  If you are forwarding a packet towards a link-local destination address, wouldn't the source address then have to be a link-local address from the same prefix, which according to scope, should not route beyond the local link?  How do you route an IP packet that has a link-local address for a source address?
Any insight would be much appreciated.
Thank you in advance.

Dougles,
next hop is used for reaching "gateway" that know where to send packets farther (read it as "next hop to the destination")... routing in IPvX is hopping between nodes where every hop is closer to destination... This is theory behind.
So as machine that needs to send packet to "not directly connected destination" you only need to send packet to gateway leading to this destination...
so you need to send packet so, that "gateway" will recieve this packet and gateway then send this packet farther... it is not important what IP address this gateway has.
On ethernet you only need to know MAC address of this gateway and you send packet (with your source IPv6 address and intended destination IPv6 address) encapsulated with "destination MAC address" of gateway. When gateway recieve ethernet frame, and this frame is for it (destination MAC address is its MAC address), the gateway will proceed IP header (inside IP header the gateway see IT is not final destination for this packet, and gateway will route this packet).
So configuring IP address as next hop is just "hleper for simpler administration".. MAC address of gateway is important. In IPv4 address resolution protocol (ARP) is used to automaticly get MAC address of gateway if you configure next hop as IP address. In IPv6 there is neighbor discovery protocol(ND) used for this task.
conclusion: you can use link local address as nex hop address for addresses from any scope ... next hop is just next hop, it is not used just for the same scope communication.
And question is... if we need just information about MAC address of gateway, why to ask using global address?
We need to get MAC address... that is information important just "locally"... so to ask for local information, why not use link local address ?
HSRP is the same case... really just need MAC address to send packets correctly.

Similar Messages

  • Getting error while accessing a webpage by using link local address of ipv6

    Hello,
    I want to access my login.jsp by using ipv6 address.
    when i am accessing my web page by using loop back or localhost6(like the following) it is working.
    http://[::1]:8080/test/login.jsp //for loopback
    http://localhost6:8080/test/login.jsp
    But when i am accessing my webpage by using link local address as following i am not getting my web page.
    http://[fe80::201:6cff:fe0f:d7ae%eth0]:8080/test
    or
    http://[fe80::201:6cff:fe0f:d7ae]:8080/test
    For the above case is there any solutions????

    Whatever i have mentioned these are correct. My ipv6 address is also correct.From browser only i am accessing.>
    Not a Java issue, then. Your problem I'm afraid.
    But how do you know they're correct? Given that one of them isn't working, I'd triple check it if I were you.

  • SG300 cant change the Link Local address for an IPv6 interface

    There seems to be no apparent way to change the Link Local address for an IPv6 interface
    If I create more than one interface they all appear to have the same Link Local address

    Never mind, I figured it out
    By adding a Link Local address to an interface, it overides the existing one on the interface

  • Setting sbRIO IP address without using link-local

    Hello
    I am working deployment of an image to sbRIO in production. Deploying the image works well, but setting up the sbRIO so that i can actually deploy the image does not. In production the deployment will deal with brand new sbRIO cards, so they will connect as DHCP/link-local.
    The setup i have does not allow me to:
    - Set the IP properties of the sbRIO manually.
    - Set the host computer IP properties to DHCP/link-local
    - Use a switch with DHCP
    So at this point i can find the sbRIO with the System Configuration VI's. I can download the image to the sbRIO (if i manually set the IP address to static on the same subnet as the host). But i can not connect to the sbRIO with the System Configuration VI's unless i change the host computer IP settings, and so i cant set the IP settings on the sbRIO so that they match the host.
    However, MAX seems to be able set the IP settings on the sbRIO just fine no matter if its using link-local or not. So it should be doable.
    Does anyone have experience with this? How does MAX do it?
    Ideally i would like to:
    -Connect the (new) sbRIO
    - Discover it (link-local)
    - Set a static IP
    - Write image
    I also wonder if anyone else have seen strange behaviour in MAX when interacting with a sbRIO on a network card with multiple IP addresses? And if so, can it be fixed? In  my case new IP settings doesnt settle on the sbRIO unless the (host) network card has max one IP address.
    / Nimgaard

    Ok, there are two different settings that involve DHCP, one being the public IP address that is assigned to the AirPort and the other being the IP addresses that are assigned to the computers on the private network.
    Before doing the following, I would hard reset the AirPort Extreme by holding the reset button on the back for 5-10 seconds, just so we can get a default onfiguration.
    If you run AirPort Utility, go to Manual Setup, and click on Internet your Connection Sharing at the bottom should be listed as Share a Public IP Address. This enables your AirPort to be the gateway and to receive a public IP address from your cable provider. This should really already be enabled since you did a hard reset.
    Now test to make sure you have an internet connection. If not, then you need to reset your cable modem. If after resetting your cable modem you still can't get internet connection then you need to call your cable provider and have then do whatever they need to do to get you a new IP address.
    Now that you have a working internet connection you need to setup your private network. Run AirPort Utility, click on Manual Setup, and go to the Internet tab again. Write down the DNS servers you see listed. For Configure IPv4, you need to change the setting from Using DHCP to Manually. Enter the IP address as 192.168.249.10, the subnet mask as 255.255.255.0, the router address as 192.168.249.10, and then use the DNS Servers you just wrote down.
    Now click on the DHCP tab next to the Internet Connection tab and select 192.168.249.100 as your beginning DHCP address. Ending address could be something like 192.168.249.200. Update your AirPort and then see if things are working correctly.

  • IPv6 Link-local addresses: EUI-64 or Static?

    Hello Everyone.
    What is the best practice? Configuring a static link-local address on the interface, or letting the router pick an eui-64 one?
    From a dynamic routing process point of view, does it really matter which type of link local address is used in a production network?
    I know that static addresses are more convinient for humans. But what about the IOS?
    Any other considerations?
    Thank you all.

    Hello,
    I would say that as you already know when you use a routing protocol on IPv6 the neighbor will always be the link local address from the interface from the neighbor itself,
    So I would say why to use Dynamic( Cause it's easy,it's scalable as it's based on a unique value)
    Why to use Static ( So you can create your own system to identify the neighbor, I have read that for security purposes you can use a mechanism that will create random EUI-64 based on a hash but as this is only for Link-Local address I would say it does not apply here)
    Regards

  • DFSDiag TestDCs Warning - Site Association by IPv6 Link Local Addresses?!?

    Why is DFSDiag
    using IPv6 Link Local Addresses (fe80::/64) for /TestDCs Site Association test?
    C:\Users\Administrator\Documents>dfsdiag /testdcs
    DFSDIAG_INFO - APPL - Client Domain found to be BRREX.
    Starting TestDcs ....
    Validating DFS Service ....
    Validating DFS Service on FINCH.
    DFSDIAG_INFO - APPL - DFS Service on FINCH is OK.
    Validating SiteCostedReferrals Key ....
    Validating SiteCostedReferrals in FINCH.
    DFSDIAG_INFO - APPL - SYSVOL/NETLOGON referrals are site costed.
    Validating Registry Entries ....
    BRREX has a single domain controller.
    Validating SiteAssociation ....
    Validating SiteAssociation of FINCH in every DC.
    DFSDIAG_WARNING - APPL - SiteName from IP - fe80::a402:d343:baa3:5f5e%12 of FINCH in DC - FINCH is NULL while in ADSite it is GoGrid,
    this can lead to different referral ordering.
    DFSDIAG_WARNING - APPL - SiteName from IP - fe80::7473:f9f8:c5c3:17e6%13 of FINCH in DC - FINCH is NULL while in ADSite it is GoGrid,
    this can lead to different referral ordering.
    Finished TestDcs.
    C:\Users\Administrator\Documents>
    DFSDiag problems with IPv6 Link Local addresses has occurred
    three (3) other times.
    My best guess is either AD DS or DFS don't like running on server routing IPv6 via
    6in4 tunnel.
    IPCONFIG follows:
    Windows IP Configuration
    Host Name . . . . . . . . . . . . : finch
    Primary Dns Suffix . . . . . . . : brrex.com
    Node Type . . . . . . . . . . . . : Hybrid
    IP Routing Enabled. . . . . . . . : No
    WINS Proxy Enabled. . . . . . . . : No
    DNS Suffix Search List. . . . . . : brrex.com
    grid-store.brrex.com
    grid-node.brrex.com
    Ethernet adapter Private:
    Connection-specific DNS Suffix . : grid-store.brrex.com
    Description . . . . . . . . . . . : SUSE Network Driver for Windows #2
    Physical Address. . . . . . . . . : 00-16-6E-00-0B-1E
    DHCP Enabled. . . . . . . . . . . : No
    Autoconfiguration Enabled . . . . : Yes
    IPv6 Address. . . . . . . . . . . : 2001:470:841e:1::100(Preferred)
    Link-local IPv6 Address . . . . . : fe80::a402:d343:baa3:5f5e%12(Preferred)
    IPv4 Address. . . . . . . . . . . : 10.113.0.40(Preferred)
    Subnet Mask . . . . . . . . . . . : 255.255.255.0
    Default Gateway . . . . . . . . . :
    DNS Servers . . . . . . . . . . . : 2001:470:841e:1::100
    ::1
    10.113.0.40
    127.0.0.1
    NetBIOS over Tcpip. . . . . . . . : Disabled
    Ethernet adapter Public:
    Connection-specific DNS Suffix . : grid-node.brrex.com
    Description . . . . . . . . . . . : SUSE Network Driver for Windows
    Physical Address. . . . . . . . . : 00-16-6E-00-0B-1D
    DHCP Enabled. . . . . . . . . . . : No
    Autoconfiguration Enabled . . . . : Yes
    IPv4 Address. . . . . . . . . . . : 173.1.67.212(Preferred)
    Subnet Mask . . . . . . . . . . . : 255.255.255.240
    Default Gateway . . . . . . . . . : 173.1.67.209
    DNS Servers . . . . . . . . . . . : 173.1.67.212
    127.0.0.1
    NetBIOS over Tcpip. . . . . . . . : Disabled
    Tunnel adapter Local Area Connection* 9:
    Media State . . . . . . . . . . . : Media disconnected
    Connection-specific DNS Suffix . :
    Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
    Physical Address. . . . . . . . . : 02-00-54-55-4E-01
    DHCP Enabled. . . . . . . . . . . : No
    Autoconfiguration Enabled . . . . : Yes
    Tunnel adapter IP6Tunnel:
    Connection-specific DNS Suffix . : grid-node.brrex.com
    Description . . . . . . . . . . . : Microsoft Direct Point-to-point Adapater
    Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
    DHCP Enabled. . . . . . . . . . . : No
    Autoconfiguration Enabled . . . . : Yes
    IPv6 Address. . . . . . . . . . . : 2001:470:1f04:53f::2(Preferred)
    Link-local IPv6 Address . . . . . : fe80::7473:f9f8:c5c3:17e6%13(Preferred)
    Default Gateway . . . . . . . . . : 2001:470:1f04:53f::1
    DNS Servers . . . . . . . . . . . : 173.1.67.212
    127.0.0.1
    NetBIOS over Tcpip. . . . . . . . : Disabled
    Tunnel adapter Local Area Connection* 12:
    Media State . . . . . . . . . . . : Media disconnected
    Connection-specific DNS Suffix . : grid-node.brrex.com
    Description . . . . . . . . . . . : isatap.grid-node.brrex.com
    Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
    DHCP Enabled. . . . . . . . . . . : No
    Autoconfiguration Enabled . . . . : Yes
    Tunnel adapter Local Area Connection* 13:
    Media State . . . . . . . . . . . : Media disconnected
    Connection-specific DNS Suffix . : grid-store.brrex.com
    Description . . . . . . . . . . . : isatap.grid-store.brrex.com
    Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
    DHCP Enabled. . . . . . . . . . . : No
    Autoconfiguration Enabled . . . . : Yes
    ROUTE PRINT follows:
    ===========================================================================
    Interface List
    12 ...00 16 6e 00 0b 1e ...... SUSE Network Driver for Windows #2
    11 ...00 16 6e 00 0b 1d ...... SUSE Network Driver for Windows
    1 ........................... Software Loopback Interface 1
    10 ...02 00 54 55 4e 01 ...... Teredo Tunneling Pseudo-Interface
    13 ...00 00 00 00 00 00 00 e0 Microsoft Direct Point-to-point Adapater
    14 ...00 00 00 00 00 00 00 e0 isatap.grid-node.brrex.com
    15 ...00 00 00 00 00 00 00 e0 isatap.grid-store.brrex.com
    ===========================================================================
    IPv4 Route Table
    ===========================================================================
    Active Routes:
    Network Destination Netmask Gateway Interface Metric
    0.0.0.0 0.0.0.0 173.1.67.209 173.1.67.212 266
    10.0.0.0 255.0.0.0 10.113.0.1 10.113.0.40 11
    10.113.0.0 255.255.255.0 On-link 10.113.0.40 266
    10.113.0.40 255.255.255.255 On-link 10.113.0.40 266
    10.113.0.255 255.255.255.255 On-link 10.113.0.40 266
    127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
    127.0.0.1 255.255.255.255 On-link 127.0.0.1 306
    127.255.255.255 255.255.255.255 On-link 127.0.0.1 306
    173.1.67.208 255.255.255.240 On-link 173.1.67.212 266
    173.1.67.212 255.255.255.255 On-link 173.1.67.212 266
    173.1.67.223 255.255.255.255 On-link 173.1.67.212 266
    224.0.0.0 240.0.0.0 On-link 127.0.0.1 306
    224.0.0.0 240.0.0.0 On-link 10.113.0.40 266
    224.0.0.0 240.0.0.0 On-link 173.1.67.212 266
    255.255.255.255 255.255.255.255 On-link 127.0.0.1 306
    255.255.255.255 255.255.255.255 On-link 10.113.0.40 266
    255.255.255.255 255.255.255.255 On-link 173.1.67.212 266
    ===========================================================================
    Persistent Routes:
    Network Address Netmask Gateway Address Metric
    10.0.0.0 255.0.0.0 10.113.0.1 1
    0.0.0.0 0.0.0.0 173.1.67.209 Default
    ===========================================================================
    IPv6 Route Table
    ===========================================================================
    Active Routes:
    If Metric Network Destination Gateway
    13 266 ::/0 2001:470:1f04:53f::1
    1 306 ::1/128 On-link
    13 266 2001:470:1f04:53f::/64 On-link
    13 266 2001:470:1f04:53f::2/128 On-link
    12 266 2001:470:841e:1::/64 On-link
    12 266 2001:470:841e:1::100/128 On-link
    13 266 fe80::/64 On-link
    12 266 fe80::/64 On-link
    13 266 fe80::7473:f9f8:c5c3:17e6/128
    On-link
    12 266 fe80::a402:d343:baa3:5f5e/128
    On-link
    1 306 ff00::/8 On-link
    13 266 ff00::/8 On-link
    12 266 ff00::/8 On-link
    ===========================================================================
    Persistent Routes:
    If Metric Network Destination Gateway
    0 4294967295 ::/0 2001:470:1f04:53f::1
    ===========================================================================
    Thanks in advance!

    Did you solve this? I'm having the same problem.

  • IPv6 link-local address on point-to-point interface

    Hello,
    I'm a little bit confused. I know that there are two ways of assigning an IPv6 link-local address on interface. We can add it manually, or it is by default created automatically using modified EUI-64. But how is this address made when there is no MAC address on point-to-point link?
    Thanks.
    Martin

    Hello,
    sorry but I don't think that these reasons are reasonable. Why do they need to remember these addresses when are they used only on a link with internal processes? They cannot be used for management purposes, so I would say that it is easier for me to configure one loopback with global address at each router which would be easy to remember, announce it to IGP and it can be used for management, so as for BGP..and I don't need to care about all link local addresses I'm using in my network, which might contain hundreds of links..

  • It is possible ssh from a router to another, to its ipv6 link-local address?

    Hi 
    R1 and R2 are connected by serial links, with IPV6 address global unicast and link-local every link.
    I can do ping between them. When I do ping to link-local address next router, I need to specify outgoing interface, ping is succesful.
    However I can not do SSH v2 from a router to another to its link-local address. 
    OS R1 and R2: c2900-universalk9-mz.SPA.151-1.M4.bin 
    R1
    Serial0/3/0                [up/up]
        FE80::1
        2001:1200:CAFE:BEBA::1
    R2
    Serial0/3/0                [up/up]
        FE80::2
        2001:1200:CAFE:BEBA::2
    Thank you

    Hi Cesar, 
    you should be able to use "%source_itf" at the end of the target IPv6 LL address. 
    Example with telnet : 
    R1#ping FE80::302              
    Output Interface: Ethernet0/0                 
    Type escape sequence to abort.
    Sending 5, 100-byte ICMP Echos to FE80::302, timeout is 2 seconds:
    Packet sent with a source address of FE80::301%Ethernet0/0
    Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/1 ms
    R1#telnet FE80::302%Ethernet0/0
    Trying FE80::302 ... Open
    Password required, but none set
    [Connection to FE80::302%Ethernet0/0 closed by foreign host]
    R1#

  • Link Local Address on BGP

    I recently start to have IPv6 BGP Peer, at first I try to block all the link local address at my interface incoming ACL but after a while I notice that there has many match log on the deny link local address. I want to know is it a correct thing to not block link local address even the link is upstream link to my ISP?
    My IPv6 BGP is formed by using Global IPv6 address!

    Do you actually have a business need to block Link Local addresses ? This should not be done as the IPv6 control plane relies on link local addresses. e.g. each time you do a Neighbour Discovery on Ethernet. Link Local are also non routeable so they cannot traverse the router (assuming that is the intent of the ACL)
    I would recommend against blocking Link Local addresses in ACLs however if you must do this you should be selective about the ones you allow through. e.g.
    permit link_local_bgp_peer
    deny all link_local
    permit global uinicast
    Though just beware that even then, if the upstream link local address changes, as in the upstream router swaps or replaces its interface then the ACL will have no effect as the Link Local address would have changed.

  • Someone in France is using my email address for an Apple ID.

    Just bought my first iPhone 24 hours ago. Tried to create an Apple ID. Someone in France is apparently using my email address for their own account. Whenever I try to redeem the code on an App Store card I just bought, a message pops up that I presume says I can't use the code in France. Then iTunes and the App Store revert to French settings. I can reset the language to Canadian english on my laptop, but iTunes and the App Store on my iPhone remain in French. I've tried resetting my iPhone, to no avail. Very frustrated because I only get email support, and have to wait 24 hours for a reply. When I looked at my account, there is someone else's personal information, including credit card info. WHY?????????????//

    You'll probably have to contact iTunes store support to straighten this out.  They deal with Apple ID issues all the time.  You can contact them here: http://www.apple.com/emea/support/itunes/contact.html.

  • E4200 v2 - Uses multiple MAC addresses for the same device

    This unit seems pretty good at first but on looking at the Web interface I noticed that it was using multiple mac addresses for the same device and showing devices on the lan on the Wireless side and other odd things.
    After a week of running it the home server network started to get erratic, it would seem to all point to dns and dhcp issues in the router.
    Seems the V1 had the same issues that they did not fix on this.
    The Cisco connect software shows 5 devices the Web based utility shows 3??.
    Its pretty bad that they charge nearly $200 and cannot be bothered to finish the unit or address the issues that were in V1.

    I am afraid I didn't get the clear picture of the issue mentioned in the post. Could you please elaborate a little bit? If you connect a device/computer wired and then later you connect it wirelessly. It is obvious that you would get to see two different MAC addresses for the same device, one for the LAN adaptor and other one for WLAN adaptor. If that is what you are referring to?
    Secondly, may I  know, what issues did you face with DNS and DHCP in the router? Is it not able to resolve the DNS or something else or DHCP is not sending IP address to the clients?

  • HT5622 When my daughter got her first iphone we set it up with my email address, she now has her own email & new iphone.  I want to use my email address for my icloud, can I delete the content  from the icloud account and continue to use my email?

    When my daughter got her first iphone we set it up with my email address, she now has her own email & new iphone.  I want to use my email address for my icloud, can I delete the content from the icloud account and continue to use my email?

    Yes, but be sure she is on a separate iCloud account with a separate ID before deleting anything.  Be sure there is nothing that you want to keep on your device too.  When you delete the data from iCloud it will be deleted from all devices signed into the account.  Then you can delete the data from the existing account by doing the following:
    To delete the contacts, go to iCloud.com from your computer, log into your iCloud account and open Contacts, click on All Contacts on the left, to the right click on any single contact to select it, click on the Actions (gear shaped) icon at the bottom left and choose Select All, then press the Delete key on your keyboard.
    For Calendars, open the calendar on icloud.com, click Edit on the bottom left, then tap the minus sign to the right of each calendar to delete it.
    For Notes, open notes on icloud.com, click on each note on the left, then click Delete at the top to delete it.
    For Reminders, open reminders on icloud.com, click on each reminder and press your Delete key to delete it.
    For Mail, open your mail on icloud.com, click each folder on the left (such as your inbox), click on a single message to the right, press Control-A on your keyboard to select them all, then press your Delete key.  Repeat this for each of your mail folders except Trash.  When finished, click on the actions (gear-shaped) icon on the bottom left and select Empty Trash.
    If you also want to delete your iCloud backups you can go to Settings>iCloud>Storage & Backup>Manage Storage on your device, tap the name of your device under Backups, then tap Delete Backup.

  • Today I turned on my macbook pro and I had an alert saying "email addresses added to ********" ******** is now using my email addresses for iCloud for iMessage

    got an alert saying someones last name was using my email addresses for imessage. i am worried that they can now read all my messages. is that possible? does anyone know

    Hi Rochdr,
    You can use the following article to help you address this issue with your mail account in OS X:
    OS X Mail: Troubleshooting sending and receiving email messages
    http://support.apple.com/kb/ts3276
    Thanks for using the Apple Support Communities. Have a good one!
    -Braden

  • How do i use existing email address for digital editions

    how do i use existing email address for digital editions

    Three possibilities.
    1) If you already have an up to date Adobe account with associated email, you need to register it with ADE.
    menu/Help/Authorize Computer (Library/Authorize Computer on the older more reliable v1.7.2).
    2) If you already have an Adobe account/ID and have books that have been bought using it, then you should change the email associated with that account.
    Login at the adobe.com website ('sign in' near top right), using the old email the account is currently associated with. 
    (Doesn't matter if this is no longer valid as an email address, it is still valid to access your Adobe account)
    Choose  'My Information' on the 'Welcome' dropdown, enter your new email in the appropriate place, and confirm changes.
    You will later need to validate that new email address by clicking on the confirmation email it will send.
    Then follow step 1.
    If you have an old account and the email is no longer valid and you've forgotten the password, try Adobe Live Chat to get access to the account again.
    3) You need to create yourself a brand new account.
    Click the 'sign in' and choose 'Dont' have an Adobe ID'.
    Once you have established oe, go to step 1

  • Acquiring local address for datagram socket created by DatagramChannel.open

    I've found that when I open an anonymous DatagramChannel (i.e. unbound, unconnected), the socket that it creates has no local address info I.e. no local port. Hopefully the example below will explain the problem...
    import java.nio.channels.DatagramChannel;
    import java.io.IOException;
    import java.net.DatagramSocket;
    import java.net.DatagramPacket;
    import java.net.InetAddress;
    public class QuickTest {
        public static void main( String[] args )    {
            try {
                DatagramChannel dc = DatagramChannel.open();
                DatagramSocket ds = dc.socket();
                byte[] ba = new byte[]{0,1,2,3};
                DatagramPacket dp = new DatagramPacket(ba,4,InetAddress.getLocalHost(),8000);
                ds.send(dp);
                System.out.println( "DatagramSocket from DatagramChannel");
                System.out.println();
                System.out.println( "          getInetAddress(): " + ds.getInetAddress());
                System.out.println( "         getLocalAddress(): " + ds.getLocalAddress ());
                System.out.println( "            getLocalPort(): " + ds.getLocalPort());
                System.out.println( "   getLocalSocketAddress(): " + ds.getLocalSocketAddress());
                System.out.println( "                 getPort(): " + ds.getPort());
                System.out.println( "  getRemoteSocketAddress(): " + ds.getRemoteSocketAddress());
                ds = new DatagramSocket();
                System.out.println();
                System.out.println();
                System.out.println();
                System.out.println( "DatagramSocket from new DatagramSocket()");
                System.out.println();
                System.out.println( "          getInetAddress(): " + ds.getInetAddress());
                System.out.println( "         getLocalAddress(): " + ds.getLocalAddress ());
                System.out.println( "            getLocalPort(): " + ds.getLocalPort());
                System.out.println( "   getLocalSocketAddress(): "    + ds.getLocalSocketAddress());
                System.out.println( "                 getPort(): " + ds.getPort());
                System.out.println( "  getRemoteSocketAddress(): " + ds.getRemoteSocketAddress());
            } catch (IOException e) {
                e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
    }Running this program yields the following information....
    DatagramSocket from DatagramChannel
    getInetAddress(): null
    getLocalAddress(): 0.0.0.0/0.0.0.0
    getLocalPort(): 0
    getLocalSocketAddress(): 0.0.0.0/0.0.0.0:0
    getPort(): -1
    getRemoteSocketAddress(): null
    DatagramSocket from new DatagramSocket()
    getInetAddress(): null
    getLocalAddress(): 0.0.0.0/0.0.0.0
    getLocalPort(): 1194
    getLocalSocketAddress(): 0.0.0.0/0.0.0.0:1194
    getPort(): -1
    getRemoteSocketAddress(): null
    I understand that the sockets address will be included in any packets sent, but why can I determine the port for one and not the other? I would like to continue using an anonymous channel, but I also would like to have the port for use in my test harness and for logging info...
    Any info and possible work around for this behavior would be much appreciated.
    tx in advance.

    This looks like a bug in the socket returned by DatagramSocketChannel and you should report it.
    In the meantime you could either just use DatagramSocket, or if you must have NIO you could try binding this socket to null or new InetSocketAddress(null,0) and see whether getLocalPort() now returns the right data.

Maybe you are looking for

  • Can't leave "Set Up Your iPod"

    This is over week 3 with these issues. First it was "corrupt and unreadable" now I finally got though to the restore button and have restored it about 5 times. I have also changed the drive name to try to fix this. Any change I make, adding tracks, i

  • SAP ABAP Online Training | Online SAP ABAP Training in usa, uk, Canada, Malaysia, Australia, India, Singapore.

    SAP ABAP (Advanced Business Application Programming) is one of the most sought-after modules of SAP. In accordance with its manifold returns the trend for training of SAP ABAP Online Training  is constantly on a sharp upsurge. In the first phase of t

  • Trading material Price  Control

    Hi expert I would like to know for price Control must be kept for Trading material, the same time we are procuring and selling the same.....i doesn't  want MAP keep change most of time. Regard Nabil

  • Encore cs4 - PCM encode problem

    I have a problem with ENCORE CS4 related to PCM encoding. Settings in the project I set up the PCM. I also set up the export settings set to PCM. But when it has finished transcoding and when I look in the "MediaInfo" tells me that the audio in video

  • Safari, CSS and form controls

    I am searching for a solution to the following CSS issue in Safari. Could someone from Apple verify whether or not Safari in OSX overrides all styles for form controls? While searching Google for a solution to this issue, all articles or forum entrie