Click here to Skip to main content
16,022,129 members

Comments by shivanand3291 (Top 7 by date)

shivanand3291 15-Apr-13 7:54am View    
Thanks prasad. iused this code from the link you hav posted. string hostname = "localhost";
int portno = 9081;
IPAddress ipa = (IPAddress) Dns.GetHostAddresses(hostname)[0];


try
{
System.Net.Sockets.Socket sock = new System.Net.Sockets.Socket(System.Net.Sockets.AddressFamily.InterNetwork, System.Net.Sockets.SocketType.Stream, System.Net.Sockets.ProtocolType.Tcp);
sock.Connect(ipa, portno);
if (sock.Connected == true) // Port is in use and connection is successful
MessageBox.Show("Port is Closed");
sock.Close();

}
catch (System.Net.Sockets.SocketException ex)
{
if (ex.ErrorCode == 10061) // Port is unused and could not establish connection
MessageBox.Show("Port is Open!");
else
MessageBox.Show(ex.Message);
but i am getting error in the 7th line as " This protocol version is not supported here" What can i do now? pls resolve this issue
shivanand3291 9-Apr-13 2:51am View    
ya it worked..Thanks nasir !!!
shivanand3291 9-Apr-13 1:44am View    
@prasad khandekar: Do you mean writing .vbs scripts to do iis configuration settings?
shivanand3291 9-Apr-13 1:42am View    
The name 'path' does not exist in the current context error. what does this mean nasir?
shivanand3291 9-Apr-13 1:35am View    
very sorry abhishek...felt very bad for this. sorry for those commments. i will delete it now