A
Atif Imtiaz
Guest
Hello everyone, We have a module built using .Net remoting, it's working fine on ipv4 for years but now we have to make it compatible with ipv6.
In IPV4 we access our relevant methods using URL like "tcp://130.0.24.21":8403/WKFControllerManager".
However it doesn't work on IPV6 even if we use IPV6 URL e.g., "tcp://[2001:abc:1234:0:35b0:6ee1:dc6d:5f70]:8430"
It comes up with an exception "No Connection could be made because the target machine actively refused it [my ipv6 iport]"
Private connection As String = Cap.Infrastructure.Utilities.Config.WKFServerProtocol + "://" _
+ Cap.Infrastructure.Utilities.Config.WKFServerIP + ":" _
+ Cap.Infrastructure.Utilities.Config.WKFServerPort + "/"
Private wkfControllerManager As String = connection + "WKFControllerManager"
Private wkfLoginManager As String = connection + "WKFLoginManager"
Private wkfMSMQManager As String = connection + "WKFMSMQManager"
Private wkfQueueManager As String = connection + "WKFQueueManager"
Private wkfDiaryManager As String = connection & "WKFDiaryManager"
Private wkfReminderManager As String = connection & "WKFReminderManager"
This becomes the URL of one of the methods: "tcp://130.0.24.47:8403/WKFControllerManager"
Below code returns an exception
Dim obj As Object = Activator.GetObject(GetType(ILoginManager), wkfLoginManager)
Dim myProxyObject As ILoginManager = CType(obj, ILoginManager)
SyncLock (myProxyObject)
Return myProxyObject.Login2(uInfo)
End SyncLock
Continue reading...
In IPV4 we access our relevant methods using URL like "tcp://130.0.24.21":8403/WKFControllerManager".
However it doesn't work on IPV6 even if we use IPV6 URL e.g., "tcp://[2001:abc:1234:0:35b0:6ee1:dc6d:5f70]:8430"
It comes up with an exception "No Connection could be made because the target machine actively refused it [my ipv6 iport]"
Private connection As String = Cap.Infrastructure.Utilities.Config.WKFServerProtocol + "://" _
+ Cap.Infrastructure.Utilities.Config.WKFServerIP + ":" _
+ Cap.Infrastructure.Utilities.Config.WKFServerPort + "/"
Private wkfControllerManager As String = connection + "WKFControllerManager"
Private wkfLoginManager As String = connection + "WKFLoginManager"
Private wkfMSMQManager As String = connection + "WKFMSMQManager"
Private wkfQueueManager As String = connection + "WKFQueueManager"
Private wkfDiaryManager As String = connection & "WKFDiaryManager"
Private wkfReminderManager As String = connection & "WKFReminderManager"
This becomes the URL of one of the methods: "tcp://130.0.24.47:8403/WKFControllerManager"
Below code returns an exception
Dim obj As Object = Activator.GetObject(GetType(ILoginManager), wkfLoginManager)
Dim myProxyObject As ILoginManager = CType(obj, ILoginManager)
SyncLock (myProxyObject)
Return myProxyObject.Login2(uInfo)
End SyncLock
Continue reading...