Winsock and Windows Server 2003 (.Net) 
Author Message
 Winsock and Windows Server 2003 (.Net)

Could anyone tell why the following fails on Windows Server 2003.  It works
fine on Windows 2000 Server.  The mstrLocalHostIP is the same if both cases.

I would have asked the question on the Windows Server 2003 private news
group but I am still waiting for a userid/password.

==============================================
Public Const INADDR_NONE = &HFFFFFFFF
Declare Function inet_addr Lib "wsock32" (ByVal cp As String) As Long

==============================================

 msaLocalAddr.sin_addr.S_addr = inet_addr(mstrLocalHostIP)

 If (msaLocalAddr.sin_addr.S_addr = INADDR_NONE) Then
      SetLastErrorCode "Error in socket.OpenTCP: inet_addr"
      Exit Function
 End If

==============================================

Thanks,

Mike



Wed, 29 Jun 2005 05:29:55 GMT  
 Winsock and Windows Server 2003 (.Net)

This is a VB 'classic' newsgroup.

Please ask .NET question in newsgroups with "dotnet" in their names; the
*.vb.* groups are for VB6 and earlier. If you don't see the *.dotnet.*
groups on your news server, connect directly to the Microsoft server:
msnews.microsoft.com.

--

Randy Birch
MVP Visual Basic
http://www.mvps.org/vbnet/
Please respond only to the newsgroups so all can benefit.


# Could anyone tell why the following fails on Windows Server 2003.  It
works
# fine on Windows 2000 Server.  The mstrLocalHostIP is the same if both
cases.
#
# I would have asked the question on the Windows Server 2003 private news
# group but I am still waiting for a userid/password.
#
# ==============================================
# Public Const INADDR_NONE = &HFFFFFFFF
# Declare Function inet_addr Lib "wsock32" (ByVal cp As String) As Long
#
# ==============================================
#
#  msaLocalAddr.sin_addr.S_addr = inet_addr(mstrLocalHostIP)
#
#  If (msaLocalAddr.sin_addr.S_addr = INADDR_NONE) Then
#       SetLastErrorCode "Error in socket.OpenTCP: inet_addr"
#       Exit Function
#  End If
#
# ==============================================
#
# Thanks,
#
# Mike
#
#



Wed, 29 Jun 2005 08:37:31 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. VB.Net and Windows Server 2003 Newbie

2. VB .Net 2003 Standard or VS .Net 2003 Pro for Smart Devices

3. Visual Studio .Net 2003 Final Beta, simple socket code breaks between 2002 and 2003

4. VB .Net Standard 2003 and Windows CE/PocketPC

5. Windows 2003 Server WSH

6. VB 6.0 DLL debugging from ASP in Windows 2003 Server

7. VB 6.0 DLL debugging from ASP/IIS 6.0 in Windows 2003 Server

8. Problems in running Direct3D on Windows 2003 server

9. Windows Server 2003

10. 16-bit programs on Windows Server 2003

11. Office vis a vis .NET 2002 and .NET 2003

12. VB.Net Editor keystrokes lag/slow to respond (VS.NET 2003)

 

 
Powered by phpBB® Forum Software