Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Monday, August 3, 2015 3:23 PM
using powershell
how can i send specific text to a host ip on a specific port
for exaple i want to send
text = hello
to IP address = 10.10.10.22
on port : 1222
All replies (8)
Monday, August 3, 2015 3:53 PM ✅Answered
telnet <address> <port>
type your message
\(ツ)_/
Monday, August 3, 2015 4:29 PM ✅Answered
Here is how to do it with Net classes:
https://msdn.microsoft.com/en-us/library/system.net.sockets.tcpclient(v=vs.110).aspx
\(ツ)_/
Monday, August 3, 2015 3:35 PM
What application is listening for messages on that port number?
If you find that my post has answered your question, please mark it as the answer. If you find my post to be helpful in anyway, please click vote as helpful.
Monday, August 3, 2015 3:37 PM
this is just an example i just need to know how to send to a specific port number
Monday, August 3, 2015 3:54 PM
Note that there are many kinds of ports and many protocols. You have not even begun to addr4ess that issue. For TCP protocol "telnet" usually works.
\(ツ)_/
Monday, August 3, 2015 4:03 PM
sorry it's TCP protocol port no. 4901
Monday, August 3, 2015 4:22 PM
hi
if you want to send data to a remote machine with IP: 10.10.10.22 and port number: 1222 , you must have a program have been installed on remote machine with above IP address that listening to port 1222
Monday, August 3, 2015 5:06 PM
Yeah i have a program listens to this port on this ip address