[TIL] URL, IP, PORT

Sohee Yeoยท2022๋…„ 3์›” 30์ผ
0

TIL

๋ชฉ๋ก ๋ณด๊ธฐ
1/23
post-thumbnail

2022.03.29 Today I Learned๐Ÿ“š

URL (Uniform Resource Locator)

With Hypertext and HTTP, URL is one of the key concepts of the Web.
It is the mechanism used by browsers to retrieve any published resource on the web.

URL์€ ์›น์—์„œ ์ค‘์š”ํ•œ ๊ฐœ๋… ์ค‘ ํ•˜๋‚˜์ด๋ฉฐ, ๋ธŒ๋ผ์šฐ์ €๊ฐ€ ์›น์— ๊ฒŒ์‹œ๋œ ์ž๋ฃŒ๋“ค์„ ๊ฒ€์ƒ‰ํ•˜๊ธฐ ์œ„ํ•ด ์‚ฌ์šฉํ•˜๋Š” ๋ฉ”์ปค๋‹ˆ์ฆ˜์ด๋‹ค.

์‰ฝ๊ฒŒ ๋งํ•ด ์›น ํŽ˜์ด์ง€๋ฅผ ์ฐพ๊ธฐ ์œ„ํ•œ ์ฃผ์†Œ(์ด๋ฆ„)๋ผ๊ณ  ๋ณด๋ฉด ๋œ๋‹ค.
ex) http://www.naver.com

IP (Internet Protocol address)

An IP address is a number assigned to every device connected to a network that uses the Internet protocol.

IP ์ฃผ์†Œ๋ž€ ์ธํ„ฐ๋„ท ํ”„๋กœํ† ์ฝœ์„ ์‚ฌ์šฉํ•˜๋Š” ๋„คํŠธ์›Œํฌ์— ์—ฐ๊ฒฐ๋œ ๋ชจ๋“  ๋””๋ฐ”์ด์Šค์— ํ• ๋‹น๋œ ์ˆซ์ž์ด๋‹ค.

๊ฐ ์žฅ์น˜๋“ค์˜ ๊ณ ์œ ํ•œ ์ฃผ์†Œ์ด๋ฉฐ ์ปดํ“จํ„ฐ ๋„คํŠธ์›Œํฌ์—์„œ ํ†ต์‹ ํ•˜๊ธฐ ์œ„ํ•ด ์‚ฌ์šฉํ•˜๋Š” ํŠน์ˆ˜ํ•œ ๋ฒˆํ˜ธ์ด๋‹ค. ์ด ์ˆซ์ž๋“ค์€ ์™ธ์šฐ๊ธฐ ์–ด๋ ต๊ธฐ ๋•Œ๋ฌธ์— DNS๋ฅผ ํ†ตํ•ด ๋„๋ฉ”์ธ ์ฃผ์†Œ๋กœ ๋ณ€ํ™˜ํ•˜์—ฌ ์‚ฌ์šฉํ•œ๋‹ค.
ex) 105.209.222.141

Port

Port number is used to identify an application/services which you want to talk to on your system.

Port๋ž€ ์‹œ์Šคํ…œ์—์„œ ์—ฐ๊ฒฐํ•˜๋ ค๋Š” ์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜/์„œ๋น„์Šค๋ฅผ ์‹๋ณ„ํ•˜๋Š” ๋ฐ ์‚ฌ์šฉ๋œ๋‹ค.

๋„คํŠธ์›Œํฌ ์„œ๋น„์Šค๋‚˜ ํŠน์ • ํ”„๋กœ์„ธ์Šค๋ฅผ ์‹๋ณ„ํ•˜๋Š” ๋…ผ๋ฆฌ ๋‹จ์œ„์ด๋‹ค. ๊ฐ ํฌํŠธ๋Š” ๋ฒˆํ˜ธ๋กœ ๊ตฌ๋ณ„๋˜๋ฉฐ ์ด ๋ฒˆํ˜ธ๋ฅผ ํฌํŠธ ๋ฒˆํ˜ธ๋ผ๊ณ  ํ•œ๋‹ค. ํฌํŠธ๋ฒˆํ˜ธ๋Š” IP ์ฃผ์†Œ์™€ ํ•จ๊ป˜ ์“ฐ์—ฌ ํ•ด๋‹นํ•˜๋Š” ํ”„๋กœํ† ์ฝœ์— ์˜ํ•ด ์‚ฌ์šฉ๋œ๋‹ค.
ex)http://www.naver.com:443 -> 443์ด Port

โœ๏ธURL, IP, Port ์‰ฝ๊ฒŒ ๊ตฌ๋ถ„ํ•˜๊ธฐ

  • URL : ์ด๋ฆ„. OO์ฃผ์‹ํšŒ์‚ฌ
  • IP : ์ฃผ์†Œ. ์„œ์šธ์‹œ ๊ฐ•๋‚จ๊ตฌ ํ…Œํ—ค๋ž€๋กœ OOO
  • Port : ๋ฌธ. ์ฃผ์†Œ ๊ฐ™์ง€๋งŒ ๊ฐ™์€ ๊ฑด๋ฌผ ์•ˆ์— ์‚ฌ๋ฌด์‹ค ์—ฌ๋Ÿฌ๊ฐœ, ๋‚ด๊ฐ€ ๊ฐ€์•ผ ํ•  ์‚ฌ๋ฌด์‹ค์˜ ๋ฌธ



์ฐธ๊ณ  ์‚ฌ์ดํŠธ

https://developer.mozilla.org/

https://stackoverflow.com

profile
์‹คํŒจ์— ๋ฌด๋”˜ ์‚ฌ๋žŒ. ํ”„๋ก ํŠธ์—”๋“œ ๊ฐœ๋ฐœ์ž๋ฅผ ๊ฟˆ๊ฟ‰๋‹ˆ๋‹ค

0๊ฐœ์˜ ๋Œ“๊ธ€