当前位置:网站首页>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地址正常情况下就能解决问题
边栏推荐
- 指定set 'execution.savepoint.path'后,重启flinksql报这个错是啥
- 链式编程、包、访问权限
- 设备树的树形结构到底是怎样体现的?
- IDEA debugging
- Raspberry pie arm version of GCC installed configuration and environment variables
- 从零造键盘的键盘超级喜欢,IT人最爱
- 软考高级系统架构设计师系列之:系统开发基础知识
- Summary of MVCC
- STK8321 I2C (Shengjia-accelerometer) example
- The device node structure is converted into a platform_device structure
猜你喜欢
RTL8762DK PWM(七)
RTL8762DK Lighting/LED (3)
You need to know the TCP wave four times
IDEA 找不到或无法加载主类 或 Module “*“ must not contain source root “*“ The root already belongs to module “*“
【元胞自动机】基于matlab界面聚合元胞自动机模拟【含Matlab源码 2004期】
RTL8762DK UART (two)
从零造键盘的键盘超级喜欢,IT人最爱
Device tree - conversion from dtb format to struct device node structure
RTL8762DK uses DebugAnalyzer (four)
opencv 缩小放大用哪种插值更好??
随机推荐
Introduction to the decision logic of WAASAP WebClient UI page labels
YOLO怎么入门?怎么实现自己的训练集?
软考高级系统架构设计师系列之:信息系统基础知识
GDB source code analysis series of articles five: dynamic library delay breakpoint implementation mechanism
如何编辑epub电子书的目录
Key Points Estimation and Point Instance
Nmap 操作手册 - 完整版
date command
[Data analysis] Based on matlab GUI student achievement management system [including Matlab source code 1981]
What practical projects can machine learning beginners learn?
Solve the problem that when IDEA creates a new file by default, right-click, new, there is no XML file
Super like the keyboard made from zero, IT people love it
Basic implementation of vector
IDEA debugging
Simple vim configuration
sqlserver cannot connect remotely
Flink deploys and submits jobs
leetcode: 1562. Find latest grouping of size M [simulation + endpoint record + range merge]
RTL8762DK WDG (six)
The kernel of the decompression process steps