localhost - это хост компьютера с которого и делается запрос. 127.0.0.1 - то же самое, только это уже айпи адрес который ведет на этот же компьютер, с которого делается запрос.
Unraveling the difference between localhost, 127.0.0.1, and domain names in web development. As a front-end developer, you’re constantly interacting with...
{"1_5i400":{"state":{"baobab":{"parentNode":{"context":{"genInfo":{"prefix":"1_5i40w01-0-1"},"ui":"desktop","service":"web","reqid":"1721369130878114-10689046688130993915-balancer-l7leveler-kubr-yp-sas-114-BAL","fast":{"name":"branding"}}}}},"type":"branding"},"1_5i401":{"state":{"visibleItems":[{"content":[{"type":"text","text":"Это довольно просто."}]},{"content":[{"type":"text","text":"localhost - это хост компьютера с которого и делается запрос. 127.0.0.1 - то же самое, только это уже айпи адрес который ведет на этот же компьютер, с которого делается запрос."}]}],"path":{"items":[{"text":"yandex.ru"}],"favicon":{"index":0,"pageNumber":0,"size":"m","entry":"1"}},"url":"https://yandex.ru/q/question/obiasnite_dostupnym_iazykom_chto_takoe_0_82a1a495/","favicon":{"index":0,"pageNumber":0,"size":"m","entry":"1"},"headline":"«Что такое localhost или 127.0.0.1, как этим пользоваться...","titleLines":1,"shouldWrapFold":false,"shouldOpenAllCollapsers":false,"disableReadMore":false,"hasA11yHeader":false,"siteSource":{"url":"https://yandex.ru/q/question/obiasnite_dostupnym_iazykom_chto_takoe_0_82a1a495/","title":{"title":"«Что такое localhost или 127.0.0.1, как этим пользоваться...","lines":1},"subtitle":{"path":{"items":[{"text":"yandex.ru"}],"favicon":{"index":0,"pageNumber":0,"size":"m","entry":"1"}}}},"footer":{"report":{"featureInfo":{"type":"Факт","subtype":"Расширенный факт","fact":{"type":"Расширенный факт","isText":true}},"feature":"","checkBoxLabels":[]},"addonBefore":"Kaynaktan alınan bilgiyle göre oluşturuldu"},"baobab":{"parentNode":{"context":{"genInfo":{"prefix":"1_5i40w02-0-1"},"ui":"desktop","service":"web","reqid":"1721369130878114-10689046688130993915-balancer-l7leveler-kubr-yp-sas-114-BAL","fast":{"name":"rich_fact"}}}}},"type":"rich_fact"}}
In most cases, localhost is just shorthand that refers to 127.0.0.1 by default. It can be changed though — if you edit your hosts file, you can make localhost...
Localhost (127.0.0.1) is a well-known term in computer networking. Still, if you are a beginner in web development or web hosting, learning about localhost is...
When you host your website files on your PC, the files become available via localhost (IP: 127.0.0.1) which allows you to visit the website through a remote device.
{"2_7voa":{"state":{"logo":{"href":"//yandex.com.tr","isForeign":true},"form":{"action":"/search","searchLabel":"Bul","hiddenInputs":[{"name":"lr","value":20815}]},"actions":{"advancedSearch":{"checked":false,"ariaLabel":"Gelişmiş arama"},"moreButtonProps":{"ariaLabel":"Daha fazla"},"cbir":{"name":"cbir","label":"Поиск по картинке","infoUrl":"//yandex.ru/promo/photosearch/index?source=landingdesk","isMacOS":false}},"userSection":{"loggedIn":false,"loginProps":{"loginUrl":"https://passport.yandex.com.tr/auth?retpath=%2F&origin=serp_desktop_auth_new","loginText":"Giriş yap","burgerAriaLabel":"Menü"}},"navigation":{"tabs":[{"id":"www","label":"Arama","url":"//yandex.com.tr","params":{"source":"tabbar"},"target":""},{"id":"images","label":"Görsel","url":"//yandex.com.tr/gorsel/search","params":{"text":"[$query]","noreask":"[$noreask]","nomisspell":"[$nomisspell]","parent-reqid":"[$reqid]","from":"tabbar"}},{"id":"video","label":"Video","url":"//yandex.com.tr/video/search","params":{"text":"[$query]","noreask":"[$noreask]","parent-reqid":"[$reqid]","from":"tabbar"}},{"id":"maps","label":"Haritalar","url":"//yandex.com.tr/harita","params":{"text":"[$query]","source":"serp_navig"}},{"id":"translate","label":"Çeviri","url":"//ceviri.yandex.com.tr","params":{"text":"[$query]","from":"tabbar"}}],"selectedTabId":"www"},"context":{"query":"localhost 127.0.0.1","reqid":"1721369130878114-10689046688130993915-balancer-l7leveler-kubr-yp-sas-114-BAL","noreask":"1","lr":"20815","counters":{"type":"b","data":{"$header":"0_5i40z000","logo":"0_5i40z001","login":"0_5i40z003","usermenu":"0_5i40z004","market-cart":"0_5i40z006","more-button":"0_5i40z007","cbir":"0_5i40z008","$navigation":"0_5i40z009","item":"0_5i40z00i","tab-www":"0_5i40z00b","tab-images":"0_5i40z00d","tab-video":"0_5i40z00f","tab-maps":"0_5i40z00h","tab-translate":"0_5i40z00j"}}},"loggedIn":false,"baobab":{"parentNode":{"context":{"genInfo":{"prefix":"0_5i40w01-0-1"},"ui":"desktop","service":"web","reqid":"1721369130878114-10689046688130993915-balancer-l7leveler-kubr-yp-sas-114-BAL","fast":{"name":"header-desktop"}}}}},"type":"header-desktop"},"2_5i400":{"state":{"queryUrl":"/gorsel/search?text=localhost%20127.0.0.1&stype=image&lr=20815&noreask=1&parent-reqid=1721369130878114-10689046688130993915-balancer-l7leveler-kubr-yp-sas-114-BAL&source=serp","favicon":{"index":7,"pageNumber":0,"size":"m"},"images":[{"src":"//avatars.mds.yandex.net/i?id=f5e750fa68f1a31c5b00bf91f655947dbc2375ef-10639206-images-thumbs&n=13","width":185,"height":115,"url":"/gorsel/search?text=localhost+127.0.0.1&img_url=https%3A%2F%2Fvpautinu.com%2Fwp-content%2Fuploads%2F2019%2F09%2F7-Ochistka-fajla-hosts.jpg&pos=0&rpt=simage&stype=image&lr=20815&noreask=1&parent-reqid=1721369130878114-10689046688130993915-balancer-l7leveler-kubr-yp-sas-114-BAL&source=serp","globalId":"f5e750fa68f1a31c5b00bf91f655947dbc2375ef-10639206-images-thumbs","docid":"ZF943F0C91DA3BBDC","crc":"1369376628494295474","label":"Görsel: ","origWidth":728,"origHeight":445,"lazy":false,"narrow":false},{"src":"//avatars.mds.yandex.net/i?id=4d39d4fdbe33719c76aae0d6866c4587eea4610380aae1d6-12540459-images-thumbs&n=13","width":159.5,"height":115,"url":"/gorsel/search?text=localhost+127.0.0.1&img_url=https%3A%2F%2Fi1.wp.com%2Fvirtmachine.ru%2F8XSDJKGA%2F161130073121.jpg&pos=1&rpt=simage&stype=image&lr=20815&noreask=1&parent-reqid=1721369130878114-10689046688130993915-balancer-l7leveler-kubr-yp-sas-114-BAL&source=serp","globalId":"4d39d4fdbe33719c76aae0d6866c4587eea4610380aae1d6-12540459-images-thumbs","docid":"ZB0FE0E81FE8F97EA","crc":"2993244421043655436","label":"Görsel: ","origWidth":585,"origHeight":422,"lazy":false,"narrow":false},{"src":"//avatars.mds.yandex.net/i?id=6c9c945a342d80b3b0a8f375d056a3046f1151d9-9880043-images-thumbs&n=13","width":185,"height":115,"url":"/gorsel/search?text=localhost+127.0.0.1&img_url=https%3A%2F%2Fi.ytimg.com%2Fvi%2FJGl8f64Ts4c%2Fmaxresdefault.jpg&pos=2&rpt=simage&stype=image&lr=20815&noreask=1&parent-reqid=1721369130878114-10689046688130993915-balancer-l7leveler-kubr-yp-sas-114-BAL&source=serp","globalId":"6c9c945a342d80b3b0a8f375d056a3046f1151d9-9880043-images-thumbs","docid":"ZD716FAA69455B0E9","crc":"12031954471068128660","label":"Görsel: My Localhost Is Not Pointing To 127 0 01 Also After Changing","origWidth":1280,"origHeight":720,"lazy":false,"narrow":false},{"src":"//avatars.mds.yandex.net/i?id=30ac8583a81db68f6a6bd9254ce536579f81a48a4ee73d14-8375627-images-thumbs&n=13","width":185,"height":115,"url":"/gorsel/search?text=localhost+127.0.0.1&img_url=https%3A%2F%2Fi.ytimg.com%2Fvi%2FT43bHjqr0mM%2Fmaxresdefault.jpg&pos=3&rpt=simage&stype=image&lr=20815&noreask=1&parent-reqid=1721369130878114-10689046688130993915-balancer-l7leveler-kubr-yp-sas-114-BAL&source=serp","globalId":"30ac8583a81db68f6a6bd9254ce536579f81a48a4ee73d14-8375627-images-thumbs","docid":"Z71ACA9585ABCA639","crc":"8872677406202204555","label":"Görsel: Part 2 Byen konprann adresaj IP - YouTube","origWidth":1280,"origHeight":720,"lazy":false,"narrow":false},{"src":"//avatars.mds.yandex.net/i?id=357db63b44806640c1fd4c22613c47349c5c6155-10695749-images-thumbs&n=13","width":185,"height":115,"url":"/gorsel/search?text=localhost+127.0.0.1&img_url=https%3A%2F%2Fsun9-19.userapi.com%2Fimpf%2Fc855324%2Fv855324204%2F23128b%2FgwCLu-uo7ls.jpg%3Fsize%3D604x336%26quality%3D96%26sign%3D6f45adb4a96f04698b72d8f604480863%26type%3Dalbum&pos=4&rpt=simage&stype=image&lr=20815&noreask=1&parent-reqid=1721369130878114-10689046688130993915-balancer-l7leveler-kubr-yp-sas-114-BAL&source=serp","globalId":"357db63b44806640c1fd4c22613c47349c5c6155-10695749-images-thumbs","docid":"Z0DD57563CFCE56AD","crc":"3466621113507314535","label":"Görsel: ","origWidth":1200,"origHeight":720,"lazy":false,"narrow":false},{"src":"//avatars.mds.yandex.net/i?id=ecd231e54c7906e403b2ac5346b4fcdaa0d23863-11741862-images-thumbs&n=13","width":185,"height":115,"url":"/gorsel/search?text=localhost+127.0.0.1&img_url=https%3A%2F%2Ffuzeservers.ru%2Fwp-content%2Fuploads%2F0%2F3%2F7%2F03720729df30a3a70dda9c79e167ce6f.jpeg&pos=5&rpt=simage&stype=image&lr=20815&noreask=1&parent-reqid=1721369130878114-10689046688130993915-balancer-l7leveler-kubr-yp-sas-114-BAL&source=serp","globalId":"ecd231e54c7906e403b2ac5346b4fcdaa0d23863-11741862-images-thumbs","docid":"ZA8208750D0CC45E2","crc":"17523740504370315919","label":"Görsel: What the difference between localhost and 127.0.0.1? by","origWidth":800,"origHeight":400,"lazy":true,"narrow":false},{"src":"//avatars.mds.yandex.net/i?id=0171b0a273752789ebe1a022509be6460ab2eecf-9065710-images-thumbs&n=13","width":185,"height":115,"url":"/gorsel/search?text=localhost+127.0.0.1&img_url=https%3A%2F%2Fazurplus.fr%2Fwp-content%2Fuploads%2F1610218351_Pourquoi-Localhost-IP-127001.jpg&pos=6&rpt=simage&stype=image&lr=20815&noreask=1&parent-reqid=1721369130878114-10689046688130993915-balancer-l7leveler-kubr-yp-sas-114-BAL&source=serp","globalId":"0171b0a273752789ebe1a022509be6460ab2eecf-9065710-images-thumbs","docid":"Z264965BB9BAD4EF4","crc":"10767550769779967098","label":"Görsel: Pourquoi Localhost IP 127.0.0.1? - Azur Plus","origWidth":1300,"origHeight":600,"lazy":true,"narrow":false},{"src":"//avatars.mds.yandex.net/i?id=f8e0e11f963567e299d03a170b96c24999ddc67b-3907639-images-thumbs&n=13","width":184,"height":115,"url":"/gorsel/search?text=localhost+127.0.0.1&img_url=https%3A%2F%2Fcs4.pikabu.ru%2Fpost_img%2Fbig%2F2014%2F12%2F26%2F5%2F1419578675_406491290.jpg&pos=7&rpt=simage&stype=image&lr=20815&noreask=1&parent-reqid=1721369130878114-10689046688130993915-balancer-l7leveler-kubr-yp-sas-114-BAL&source=serp","globalId":"f8e0e11f963567e299d03a170b96c24999ddc67b-3907639-images-thumbs","docid":"ZFB0ACFD035B4B3DC","crc":"1155859266264674830","label":"Görsel: Wallpaper : minimalism, typography, text, logo, simple,","origWidth":2560,"origHeight":1600,"lazy":true,"narrow":false},{"src":"//avatars.mds.yandex.net/i?id=73fb5d503765d50100fef434ea1e31e519c3feb2-3765590-images-thumbs&n=13","width":185,"height":115,"url":"/gorsel/search?text=localhost+127.0.0.1&img_url=https%3A%2F%2Fphoenixnap.com%2Fkb%2Fwp-content%2Fuploads%2F2021%2F04%2Fedit-linux-hosts-file.png&pos=8&rpt=simage&stype=image&lr=20815&noreask=1&parent-reqid=1721369130878114-10689046688130993915-balancer-l7leveler-kubr-yp-sas-114-BAL&source=serp","globalId":"73fb5d503765d50100fef434ea1e31e519c3feb2-3765590-images-thumbs","docid":"ZD95735A7E83E192B","crc":"13863247593510018621","label":"Görsel: ","origWidth":800,"origHeight":487,"lazy":true,"narrow":false},{"src":"//avatars.mds.yandex.net/i?id=2eb5f9e58bf4630e3db34a5f70c58dc8-5190189-images-thumbs&n=13","width":185,"height":115,"url":"/gorsel/search?text=localhost+127.0.0.1&img_url=https%3A%2F%2Flinuxhint.com%2Fwp-content%2Fuploads%2F2019%2F03%2F21-13.png&pos=9&rpt=simage&stype=image&lr=20815&noreask=1&parent-reqid=1721369130878114-10689046688130993915-balancer-l7leveler-kubr-yp-sas-114-BAL&source=serp","globalId":"2eb5f9e58bf4630e3db34a5f70c58dc8-5190189-images-thumbs","docid":"Z7A9E42B6E632B5CC","crc":"12448009094710081709","label":"Görsel: How to Configure dnsmasq on Ubuntu Server 18.04 LTS –","origWidth":1140,"origHeight":330,"lazy":true,"narrow":false}],"rowsCount":1,"serverWidth":536,"context":{"queryText":"localhost 127.0.0.1"},"extralinks":{"feedback":{"feature":"Тематический блок картинок","checkBoxLabels":[{"value":"Несоответствие запросу"},{"value":"Порнография"},{"value":"Шокирующая или неприятная информация"},{"value":"Недостоверная информация"},{"value":"Удалите мое фото"},{"value":"Другое"}],"customMetaFields":[{"name":"docId","value":"9"}]},"directions":["bottom-end"],"hidden":true,"headerProps":{"title":"Görsel"}},"ajaxContext":{"subtype":"intent_scroller","viewType":{"rows":1}},"title":"Görsel","isInRightColumn":false,"baobab":{"parentNode":{"context":{"genInfo":{"prefix":"2_5i40w02-0-1"},"ui":"desktop","service":"web","reqid":"1721369130878114-10689046688130993915-balancer-l7leveler-kubr-yp-sas-114-BAL","fast":{"name":"images","subtype":"intent"}}}}},"type":"images","subtype":"intent_scroller"},"2_5i401":{"state":{"linksGroups":[{"type":"geo","links":[{"label":"Columbus","title":"Columbus","url":"//yandex.com.tr/tune/geo","logNode":{"name":"region"},"target":"_self","a11yLabel":"Bölgeniz Columbus","needRetpath":true}]},{"type":"feedback","links":[{"label":"Hata bildir","logNode":{"name":"feedback","attrs":{"behaviour":{"type":"dynamic"}}}}]},{"type":"settings","links":[{"label":"Ayarlar","url":"//yandex.com.tr/tune/search","logNode":{"name":"settings"},"target":"_self","needRetpath":true}]},{"type":"company","links":[{"label":"Hakkımızda","url":"https://company.yandex.com.tr","logNode":{"name":"about"},"target":"_blank"},{"label":"Ticari teklifler","url":"/search/direct?text=localhost%20127.0.0.1&filters_docs=direct_cm","logNode":{"name":"commercial"},"target":"_blank"},{"label":"Kariyer","url":"//yandex.com.tr/jobs/?utm_source=serp_turkie&utm_medium=footerlink&utm_content=career","logNode":{"name":"vacancy"},"target":"_blank"},{"label":"Kullanım lisansı","url":"//yandex.com.tr/legal/termsofuse/","logNode":{"name":"license"},"target":"_blank"},{"label":"Gizlilik Politikası","url":"//yandex.com.tr/legal/confidential/","logNode":{"name":"confidential"},"target":"_blank"}],"a11yHidden":true}],"reportFeedbackProps":{"feature":"Подвал","title":"Hata bildir","checkBoxLabels":[]},"isSearchApp":false,"hasExtralinks":true,"limitingSelector":".AliceFabButton","baobab":{"parentNode":{"context":{"genInfo":{"prefix":"2_5i40w0e-0-1"},"ui":"desktop","service":"web","reqid":"1721369130878114-10689046688130993915-balancer-l7leveler-kubr-yp-sas-114-BAL"}}}},"type":"serp-footer"},"2_5i402":{"state":{"conditionLoadList":{"marketCart":false,"highchartsHighstock":false,"advProductGallery":false,"musicPlayer":false,"ecomRates":false,"photoViewer":false,"easterEggModal":false,"darkmodeChangeDrawer":true},"reportFeedbackBaseProps":{"initEmail":"","metaFields":{"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","userTestids":"186144,1064080,1062604,1054383,1053381,1052824,1058431,1051378,1064253,1046719,1042349,1066379,1034466,1048634,1060224,1059626,614105,1064763,1058440,1002673,1068592,1062941,1059542,1068710,182560,66289,1061210,1055872,1064806,1058040,1045124,1036351,1059413,1065475,1060646,477965,1047413,1056358,188944,1065131,1066411,1068470,1065308,1060980,1037488,1067852,961010,1002327,1036614,1021889,46453,1059893,1064228,151171,1046868,287509,142431,338390,1046004,1005534,1065399,1048648,1065962,1061658,1059627,1067985,912286","yandexuid":"6235663621721369129","uid":"0","queryText":"localhost 127.0.0.1","reqid":"1721369130878114-10689046688130993915-balancer-l7leveler-kubr-yp-sas-114-BAL","searchSlices":["drawer_search_slice_cs"],"userRegionName":"Columbus","userRegionId":"20815"}},"extralinksPopupProps":{"abuseLink":"https://twitter.yandex.com.tr/search/abuse?sign=3ab25b00208e48a5bcb637b4dee1c59e&keyno=0"},"isLoggedIn":false,"userMenuDialogProps":{"flag":"skin,feedback","host":"yandex.com.tr","lang":"tr","project":"serp","queryParams":{"utm_source":"search"},"retpath":"https%3A%2F%2Ftwitter.yandex.com.tr%2Fsearch%3Fes_context%3D0oYl8Q____________ARpLMTcxOTYyOTI2Mjg5OTg2My0xMjg3NzYxMDg2OTczOTM4OTIwNi1iYWxhbmNlci1sN2xldmVsZXIta3Vici15cC12bGEtODktQkFMMgVhc3NvY6i7ruQ%26lr%3D20815%26noreask%3D1%26rnd%3D80788%26rq%3D1%26serp-reload-from%3Drec_bottom%26source%3Dtabbar%26text%3Dlocalhost%2B127.0.0.1%26ncrnd%3D94250","tld":"com.tr"},"baobab":{"parentNode":{"context":{"genInfo":{"prefix":"2_5i40w0f-0-1"},"ui":"desktop","service":"web","reqid":"1721369130878114-10689046688130993915-balancer-l7leveler-kubr-yp-sas-114-BAL","fast":{"name":"lazy-load"}}}}},"type":"lazy-load"}}