Click here to Skip to main content
15,892,161 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionTo ust txt or database Pin
hendrikbez26-Nov-08 17:47
hendrikbez26-Nov-08 17:47 
AnswerRe: To ust txt or database Pin
Nanda_MR26-Nov-08 18:37
Nanda_MR26-Nov-08 18:37 
AnswerRe: To ust txt or database Pin
Christian Graus26-Nov-08 20:40
protectorChristian Graus26-Nov-08 20:40 
GeneralRe: To ust txt or database Pin
hendrikbez26-Nov-08 21:40
hendrikbez26-Nov-08 21:40 
GeneralRe: To ust txt or database Pin
Christian Graus26-Nov-08 21:44
protectorChristian Graus26-Nov-08 21:44 
GeneralRe: To ust txt or database Pin
hendrikbez26-Nov-08 21:52
hendrikbez26-Nov-08 21:52 
GeneralRe: To ust txt or database Pin
Tom Deketelaere26-Nov-08 23:04
professionalTom Deketelaere26-Nov-08 23:04 
QuestionChecking if a UDP port is open Pin
steve_rm26-Nov-08 17:35
steve_rm26-Nov-08 17:35 
Hello,

VS2008 SP1

<br />
      Private Function IsPortAvailable() As Boolean<br />
          Using sock As New Socket(AddressFamily.InterNetwork, _<br />
                                   SocketType.Dgram, _<br />
                                   ProtocolType.Udp)<br />
              sock.Connect(VaxSIPUserAgentOCX.GetMyIP(), 5060)<br />
              Return sock.Connected<br />
          End Using<br />
      End Function <br />


Using this code I thought I had this problem solved. However, after testing I have found that the socket always connects. Even if the port is being used by another application.

The port I am checking is 5060 UDP. My application when it starts will check if this is available. If another applications is using it. i.e. SJ Phone etc. The application will inform the user.

However, the socket always returns true. I have checked this with netstat -aon (cmd) and I can see that the port is being used.

I am checking the port on my local computer. So my IP address is 10.10.10.120. Under the netstat I can see this 0.0.0.0:5060. Why all the zeros. Could this be part of the problem

Is there another method for checking this?

I have looked at udp client, and wondering about winsock.

Thanks,
QuestionHow to create VS2008 / Office 2007 style menu? Pin
Saseendran Kombath26-Nov-08 16:39
Saseendran Kombath26-Nov-08 16:39 
AnswerRe: How to create VS2008 / Office 2007 style menu? Pin
Christian Graus26-Nov-08 21:45
protectorChristian Graus26-Nov-08 21:45 
QuestionVSTO 2008 Pin
Aptiva Dave26-Nov-08 7:54
Aptiva Dave26-Nov-08 7:54 
QuestionWM_MOUSEMOVE Help Needed Pin
afridy26-Nov-08 5:09
afridy26-Nov-08 5:09 
GeneralRe: WM_MOUSEMOVE Help Needed Pin
Luc Pattyn26-Nov-08 5:44
sitebuilderLuc Pattyn26-Nov-08 5:44 
GeneralRe: WM_MOUSEMOVE Help Needed Pin
afridy26-Nov-08 7:29
afridy26-Nov-08 7:29 
GeneralRe: WM_MOUSEMOVE Help Needed Pin
Gideon Engelberth26-Nov-08 7:40
Gideon Engelberth26-Nov-08 7:40 
GeneralRe: WM_MOUSEMOVE Help Needed Pin
Christian Graus26-Nov-08 7:45
protectorChristian Graus26-Nov-08 7:45 
GeneralRe: WM_MOUSEMOVE Help Needed Pin
Luc Pattyn26-Nov-08 8:53
sitebuilderLuc Pattyn26-Nov-08 8:53 
GeneralRe: WM_MOUSEMOVE Help Needed Pin
Christian Graus26-Nov-08 10:02
protectorChristian Graus26-Nov-08 10:02 
GeneralRe: WM_MOUSEMOVE Help Needed Pin
Luc Pattyn26-Nov-08 10:45
sitebuilderLuc Pattyn26-Nov-08 10:45 
GeneralRe: WM_MOUSEMOVE Help Needed Pin
Christian Graus26-Nov-08 13:03
protectorChristian Graus26-Nov-08 13:03 
GeneralRe: WM_MOUSEMOVE Help Needed Pin
EliottA27-Nov-08 2:38
EliottA27-Nov-08 2:38 
QuestionDataTable.Select question re Date columns Pin
TheComputerMan26-Nov-08 4:27
TheComputerMan26-Nov-08 4:27 
AnswerRe: DataTable.Select question re Date columns Pin
Mycroft Holmes26-Nov-08 16:24
professionalMycroft Holmes26-Nov-08 16:24 
AnswerRe: DataTable.Select question re Date columns Pin
Nanda_MR26-Nov-08 17:10
Nanda_MR26-Nov-08 17:10 
QuestionASP.NET (Treeview & Menu) Pin
Nanda_MR26-Nov-08 1:05
Nanda_MR26-Nov-08 1:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.