Microsoft KB Archive/183930

From BetaArchive Wiki

FIX: IP Is Mangled When Using UDP on Multihomed Computers

Q183930



The information in this article applies to:


  • Microsoft Windows NT Server version 4.0
  • Microsoft Windows NT Workstation version 4.0
  • Microsoft Windows NT Server version 4.0, Terminal Server Edition





SYMPTOMS

When you are running a COM server on a multi-homed computer using UDP as the DCOM protocol, the IP address list that is returned in the RPC response packet might be garbled. If you use network sniffers, such as the Network Monitor, you can see the incorrect IP addresses.

This occurs when your application acts like a "server" (that is, when it needs to hand back an interface pointer to the caller). For example, when you are using connection points, the client calls IConnectionPoint::Advise() to pass a sink interface pointer to the server. If the client is running on a multi-homed computer using UDP as the DCOM protocol, the IP address list returned as a result of that call contains the mangled IP addresses.



CAUSE

Using standard marshaling, when the client asks for an interface pointer from a server, the client gets back a marshaled object reference packet. This packet contains the bindings of the OXID Resolver (OR) process of the server machine. For IP transports, these bindings contain the IP addresses of the server machine. When using UDP over IP and when there are multiple IP addresses in the bindings, these addresses may be garbled. When the OR on the client computer tries to resolve the addresses in the bindings, it will try to call an incorrect address. This call times out. This can cause delays or errors in calls.



RESOLUTION

Change the DCOM protocol to use TCP to work around this problem. You can do this by moving TCP protocol to the top (in NT4 UDP is at the top) in the registry for the value of HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Rpc\DCOM Protocols using Regedt32.exe.

To resolve this problem, obtain the latest service pack for Windows NT 4.0 or Windows NT Server 4.0, Terminal Server Edition. For additional information, please see the following article in the Microsoft Knowledge Base:

Q152734 How to Obtain the Latest Windows NT 4.0 Service Pack


For your convenience, the English version of this post-SP3 hotfix has been posted to the following Internet location. However, Microsoft recommends that you install Windows NT 4.0 Service Pack 4 to correct this problem.

ftp://ftp.microsoft.com/bussys/winnt/winnt-public/fixes/usa/nt40/hotfixes-postsp3/roll-up/



STATUS

Microsoft has confirmed this to be a problem in Windows NT 4.0 and Windows NT Server 4.0, Terminal Server Edition. This problem was first corrected in Windows NT 4.0 Service Pack 4.0 and Windows NT Server 4.0, Terminal Server Edition Service Pack 4.

Additional query words: multi-homed multi homed

Keywords : kbWinNT400sp4fix
Issue type : kbbug
Technology : kbWinNTsearch kbWinNTWsearch kbWinNTW400 kbWinNTW400search kbWinNT400xsearch kbWinNTSsearch kbWinNTS400xsearch kbWinNTS400 kbNTTermServ400 kbNTTermServSearch


Last Reviewed: February 3, 2000
© 2001 Microsoft Corporation. All rights reserved. Terms of Use.