|
Have you tried to ping 213.55.66.247 ?
Do you know if port 80 is opened ?
|
|
|
|
|
Ya I tried to ping 213.55.66.247 and I got a reply...... but what it helps??
stancrm wrote: Do you know if port 80 is opened ?
What do you mean by port 80 is opened ...... I didnt understand it ... or how do i know if it is opened or not ...
Thank you for the responce
|
|
|
|
|
|
Is that good(works well than Socket class) to use WebRequest class for peer to peer network.
Thank you budy
|
|
|
|
|
I don't know, what do you want to do with it. If you just want to download some HTML site, use HttpWebRequest. If you want to send/receive binary, then use TcpClient or Socket.
|
|
|
|
|
I just wanted it to send and recive data in a peer to peer network(only 2 computers)
How abt now. did u get me?
|
|
|
|
|
|
Thank you for your help.But from the start what I wanted was ... just for peer to peer network(only 2pcs) ....but I think the code works for client/server based as I thought abt it ........ How about that?
|
|
|
|
|
Have you tried it once again ?
Before you sent a reply, I tried to ping it, and it was not available.
Now it is available.
|
|
|
|
|
Ya budy i tried it more than once .... it gives me a reply from the command prompt but it is still an error in VS .......
|
|
|
|
|
If you still having problem with connection, check the firewall, most problems are firewall thing.
|
|
|
|
|
Just for example :
It's working for me. No exception.
TcpClient tcpClient = new TcpClient();
tcpClient.Connect("213.55.66.247", 80);
NetworkStream networkStream = tcpClient.GetStream();
byte[] buffer = Encoding.ASCII.GetBytes("Hello World");
networkStream.Write(buffer, 0, buffer.Length);
networkStream.Close();
tcpClient.Close();
|
|
|
|
|
Are you working on a client/server based? ....... By the way I checked the fire wall ..... still a problem..
|
|
|
|
|
Hey budy .... What you works for u didnt work for me .... I think the problem might be with ma pc....
So can you tell me how to check wheter the port is opened or not?? .... or any other means ..
Thank you
|
|
|
|
|
Yea, that means your PC is blocking your application. Or the target PC is blocking your PC..
That's not .NET problem, that is the problem of your windows / firewall.
Using that code, I have tried to connect to that IP with port 80, it's working for me.
|
|
|
|
|
So how am i goin to check wheter the port is opened or not? Because I turrned off the Firewall .. I think the problem may be on the port........... By the way can I send a connection to the pc I am working on(the same pc where the application runs)?
|
|
|
|
|
If you can connect to it, that means port 80 is opened.
If you cannot connect to it, that means target is not available or your IP has been blocked from target PC.
|
|
|
|
|
Hi All,
I have combobox with name cmbClassId.
I have to set the SelectedValue for this combo with the value form the DataTable Cell value.
I have done it like below.
cmbClassId.SelectedValue = (object)dataSet.Tables[Constants.STUDENT].Rows[0]["StudentClassId"];
but still it is showing me null in SelectedValue property of this combo...
please help me out...
Thanks & Regards
Dipak Thesiya
dipak
|
|
|
|
|
Try with SelectedItem property.It seem's that the property doesn't works fine ^.
Life is a stage and we are all actors!
modified on Wednesday, August 19, 2009 6:47 AM
|
|
|
|
|
i am supposed work with SelectedValue Property....
dipak
|
|
|
|
|
Did you remember to set the ValueMember of the ComboBox?
|
|
|
|
|
|
First change the SUBJECT TITLE then peoples may answer your question.
|
|
|
|
|
Hi,
We have some import data files which we will release along with our software which we don't want any of our client to access it , copy it, cut it, read it, etc...
After searching in google, I am getting an impression that we can keep our important data in USB. This USB we will given to user along with the application. Application should be able to access the contents of USB, but our client should not be able to see anything in USB or atleast could open it.
Is it possible... How to achieve this through coding...
alternatively I also thought an idea of encrypting and decrypting the file... there are two issues with it..
a) Encrpting and decrypting will take more time..
b) There are chances that user may able to compy decrpyted files.
Thanks in advance
If you have faith in the cause and
the means and in God, the hot
Sun will be cool for you.
|
|
|
|
|
I think, if you want something like that, you must encrypt the data in it. If you open the data using windows explorer -> it is encrypted. And in your application, you must decrypt the data to see it.
|
|
|
|