临时1008
Invoke-RestMethod -Uri "http://localhost:8088/api/EncloseList/GetTenantCodeByTel" `
-Method Post `
-ContentType "application/json" `
-Body '{"Tel":"13324178436","Type":1}'
Get-ItemPropertyValue -LiteralPath 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full' -Name Release
netstat -ano | findstr :8088
curl.exe -v -X POST "http://127.0.0.1:8088/api/EncloseList/GetTenantCodeByTel" -H "Content-Type: application/json" -d "{\"Tel\":\"13324178436\",\"Type\":1}"
Test-NetConnection -ComputerName 127.0.0.1 -Port 8088
curl.exe --noproxy "*" --connect-timeout 5 -v "http://127.0.0.1:8088/"
Test-NetConnection 127.0.0.1 -Port 8088
-------------------
netstat -ano -p tcp | findstr ":8088"
Get-NetTCPConnection -State Listen -LocalPort 8088 |
Format-Table LocalAddress,LocalPort,OwningProcess
ipconfig
Test-NetConnection <本机网卡的IPv4地址> -Port 8088 -InformationLevel Detailed
New-NetFirewallRule -DisplayName "Temp-Test-8088" -Direction Inbound `
-Action Allow -Protocol TCP -LocalPort 8088 `
-RemoteAddress 127.0.0.1,10.143.129.114 -Profile Any
curl.exe --noproxy "*" --connect-timeout 5 -v http://127.0.0.1:8088/
Remove-NetFirewallRule -DisplayName "Temp-Test-8088"
----------xxx
Get-NetFirewallProfile | Format-Table Name,Enabled,DefaultInboundAction
Get-NetFirewallRule -PolicyStore ActiveStore -Enabled True -Direction Inbound -Action Block |
ForEach-Object {
$rule = $_
$rule | Get-NetFirewallPortFilter |
Select-Object @{Name='Rule';Expression={$rule.DisplayName}}, Protocol, LocalPort
} |
Where-Object {
$_.LocalPort -contains '8088' -or
$_.LocalPort -contains 'Any' -or
$_.LocalPort -match '^\d+-\d+$'
} |
Format-Table -AutoSize
浙公网安备 33010602011771号