当前位置:网站首页>win10 固定本机IP
win10 固定本机IP
2022-08-01 02:24:00 【金箍一梦何来愁】
win10固定本机IP地址方案总结
1.需求背景
作为程序开发人员来说,在一些特定的时候需要固定本地的IP地址,比如暴露自己IP地址的时候不用每次都去查询。
2.解决方案
无论是无线网还是以太网,其操作步骤都是一样的:
1.打开cmd,输入以下命令:
// 首先是查看本机自动分配的IP地址,这一步需要记下4个有用配置(1.IPv4地址,2.子网掩码,3.默认网关,4.DNS服务器):
> ipconfig -all
2.前往:设置 --> 网络与Internet --> 更改适配器选项 --> 选择要更改的网络,然后右键点击属性 --> 找到Internet协议版本4(TCP/IPv4),然后双击 --> 进入界面自定义IP地址
3.修改IP地址注意:自定义的IP地址的前三段地址必须与第一步的IPv4地址相同,也就是说只有最后一段地址可以自定义,其余三个配置使用第一步记下的配置进行配置。
到此,IP地址就固定好了,大约等待1分钟左右就能正常访问网络了。
注意:如果进行了前三步操作后,发现还是不能正常访问网络,那么打开cmd,进行以下操作:
// 依次输入以下命令并回车,然后重启电脑,重置IP配置
> netsh winsock reset catalog
> netsh int ip reset reset.log
// 重启电脑后,再重复1-3步骤设置IP地址正常情况下就能解决问题
边栏推荐
- Google engineer fired for claiming AI awareness: breach of nondisclosure agreement
- 【数据分析】基于matlab GUI学生成绩管理系统【含Matlab源码 1981期】
- Handwritten binary search tree and test
- Fat interface in JQESAP system
- IDEA modifies the annotation font
- Replacing the Raspberry Pi Kernel
- 【密码学/密码分析】基于TMTO的密码分析方法
- Four ways the Metaverse is changing the way humans work
- 787. Merge Sort
- Inheritance Considerations
猜你喜欢
leetcode: 1648. Color ball with decreasing sales value [Boundary find by two points]
元宇宙改变人类工作模式的四种方式
树莓派 的 arm 版的 gcc 安装 和环境变量的配置
HCIP(15)
【Cryptography/Cryptanalysis】Cryptanalysis method based on TMTO
Introduction to machine learning how to?
You need to know the TCP wave four times
IDEA does not recognize the module (there is no blue square in the lower right corner of the module)
RTL8762DK RTC(五)
Academicians of the two academies speak bluntly: Don't be superstitious about academicians
随机推荐
OSD读取SAP CRM One Order应用日志的优化方式
Detailed explanation of TCP protocol
High dimensional Gaussian distribution basics
Beijing suddenly announced that yuan universe big news
一个service层需要调用另两个service层获取数据,并组装成最后的数据,数据都是list,缓存如何设计?
787. Merge Sort
【分层强化学习】HIRO:Data-Efficient Hierarchical Reinforcement Learning
Blueprint: Yang Hui's Triangular Arrangement
VPGNet
how to edit the table of contents of an epub ebook
【Cryptography/Cryptanalysis】Cryptanalysis method based on TMTO
Talking about hardware device computing storage and data interaction
RTL8762DK uses DebugAnalyzer (four)
Cmake introductory study notes
C字符串数组反转
【历史上的今天】7 月 31 日:“缸中之脑”的提出者诞生;Wi-Fi 之父出生;USB 3.1 标准发布
ROS2 series of knowledge (4): understand the concept of [service]
Luogu P3373: 线段树
MYSQL transactions
现代企业架构框架1