Click here to Skip to main content
15,063,596 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi. after a while i came back again.:)

I want to send data to port 443 in a ip address. and receive response from that.

how can i implement this? i can send data through socket, but i can not receive

response from that. thank you for your help.
Sergey Alexandrovich Kryukov 19-Aug-15 10:52am
Are you sure you have both client and server sides? :-)
If you send something to arbitrary system, you are not supposed to receive anything in response.
_Starbug_ 19-Aug-15 10:58am
in fact i do not can do any thing with server. and i have not any access to server. why i hide my end. i want to use MTProto protocol of telegram. and telegram gaved me an ipaddress with a port address. and i want to have communicate with this server.:D
Sergey Alexandrovich Kryukov 19-Aug-15 11:11am
Well, learn the protocol and follow it. Better think at the way you are asking questions. You keep silence of the most essential piece of your problem and mention it only after you get some answer. I already gave you the link. On client side, you can use TcpClient. Or find some already implemented client following the protocol.

1 solution

_Starbug_ 19-Aug-15 11:10am
Thanks for answer. do you have any other way for implement this without socket(through webclient or something else)?
Sergey Alexandrovich Kryukov 19-Aug-15 11:21am
And it depends on what your protocol is based on.
Please see:

This is all about how you ask your questions. I'll read you more, and then you will ask for "something else".


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900