Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

open port 7 echo protocol on windows 7

$
0
0

Dear Sirs

I'm trying to open port 7 for testing purpose using the following command

$tcpClient = New-Object System.net.sockets.tcpclient
$tcpClient.Connect("test-pc",7)

but I'm receiving the following error

Exception calling "Connect" with "2" argument(s): "No connection could be made
because the target machine actively refused it 192.168.0.103:7"

I created a rule but it didn't work so I temporary disabled firewall but I still receive this error message any help will be appreciated


Viewing all articles
Browse latest Browse all 6937

Trending Articles