티스토리 뷰

cmd 창에서

curl localhost:80

이렇게 날리면 방화벽이 열려있다면 관련 텍스트(웹 일경우 html태그들)가 리턴되서 올것이다.

C:\>curl localhost:80
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
body
{
        background-color:#a776d5;
        margin:0 auto;
}
p { margin:0; }

....

방화벽이 안열려있다면 먹통된 느낌 혹은

C:\>curl localhost:803
curl: (7) Failed to connect to localhost port 803: Connection refused

 

댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함