<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi,<br><br>I am trying to test one small program in which...the program is not listing the devices that are present in the remote machine. (it keeps waiting there).<br><br>Attached codes :<br>1.main.cpp<br>2.server.c (Simple C socket server program)<br><br>while executing I have done the following steps<br>1.Started the server by executing server.c(with some port eg.9898 as an argument)<br>2.Started the daemon rpcapd.exe -b 127.0.0.1 -p 9898 -n<br>&nbsp;&nbsp; ( since the server is executing in the local machine)<br>3. Started the execution of main program<br>&nbsp;&nbsp; Out put :<br><span style="font-style: italic;">&nbsp;&nbsp; Enter the device you want to list:</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp; rpcap://&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ==&gt; lists interfaces in
 the local machine</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp; rpcap://hostname:port ==&gt; lists interfaces in a remote machine</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (rpcapd daemon must be up and running</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; and it must accept 'null' authentication)</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp; file://foldername&nbsp;&nbsp;&nbsp;&nbsp; ==&gt; lists all pcap files in the give folder</span><br style="font-style: italic;"><br style="font-style: italic;"><span
 style="font-style: italic;">&nbsp;&nbsp;&nbsp;&nbsp; Enter your choice:<span style="font-weight: bold;"> rpcap://127.0.0.1:9898/</span></span><br><br>&nbsp;&nbsp;&nbsp; After this step it keeps on waiting ..and does not display any devices on this machine with this port?<br>&nbsp;&nbsp; <br>&nbsp;&nbsp; &nbsp; And also at the server side I see that connection is accepted(becz I see the conn accept msg) <br><br>&nbsp;&nbsp;&nbsp; So do I have to include any code on the server program to send the device list or it should automatically detect the devices??<br><br>&nbsp;&nbsp;&nbsp; So any help on this would be really useful to me ....<br><br>Thanks in advance,<br>Vishwesh<br>&nbsp;&nbsp; <br></td></tr></table><br>