Share via

Windows 10 Home - Static / Fixed IP problem

Anonymous
2018-08-17T08:18:13+00:00

I am sure this issue has been reported already but I am not sure if a permanent fix was found, but hopefully someone can assist me here. 

I have my PC running Windows 10 - Home edition, it has a fixed static IP of 192.168.0.3 and a gateway of 192.168.0.1 (subnet mask of 255.255.255.0)

However after windows updates (or large Window update deployments) it can lose the fixed IP, so it then has no internet access after it has rebooted, this causes me problems logging on again using my PC account as it needs internet access. 

Last night it lost the Fixed IP again and when I finally managed to get logged in, it had the radio button of "Use the following IP address" but all the boxes were null/blank. 

So as to resolve it, I have for now, switched it back to DHCP, I used Fixed/Static IP as there is some software I use on this PC that needs certain ports on my router enabled and I have configured it purely for this PC's fixed IP. 

I noticed that if I search the web there have been reported issues with the static IP not holding or losing the settings, as this is a home PC, is there any way to encode the fixed IP into to the registry ? 

Chris

Windows for home | Windows 10 | Internet and connectivity

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer accepted by question author
  1. Martmcd 19,965 Reputation points Independent Advisor
    2018-08-17T11:43:58+00:00

    personally, i would put the shortcut on the desktop where i can get to it without too many clicks. or pin it to the taskbar. the best place is where you are comfortable.

    you could try using the task scheduler and set the task to run on startup with admin privileges

    2 people found this answer helpful.
    0 comments No comments
Answer accepted by question author
  1. Pauli O 15,375 Reputation points Volunteer Moderator
    2018-08-17T11:13:01+00:00

    You can set your router DHCP Settings so that PC's MAC address is associated to predefined IP-address and every time when that PC ask IP it will always get same address. This way you can leave PC settings to default "Obtain an IP address automatically".

    Here is one example, but to specific instructions you need to see your router manual.

    https://www.tp-link.com/uk/faq-170.html

    2 people found this answer helpful.
    0 comments No comments
Answer accepted by question author
  1. Martmcd 19,965 Reputation points Independent Advisor
    2018-08-17T14:20:52+00:00

    sorry, misread your question. i have a folder in documents i have called batch and i put all my batch files in there. because i want them included in the backups. as you are not intending to call the batch file without using the shortcut, it doesn't matter where you put it, but avoid moving it after creating the shortcut.

    1 person found this answer helpful.
    0 comments No comments
Answer accepted by question author
  1. Martmcd 19,965 Reputation points Independent Advisor
    2018-08-17T09:23:59+00:00

    Microsoft are trying to reduce the amount of settings that are set to default during updates and new builds, however some still occur.

    you could set the fixed ip with a command line which you could put into a .bat file and run it with a double click when you experience a problem (or run it on startup)

    get some info first

    open an elevated command prompt (right click on start and select command prompt (admin)

    type the following and press enter

    netsh interface show interface

    make a note of the interface name

    create a new text file with the following

    netsh interface ip set address "interface name" static 192.168.0.3 255.255.255.0 192.168.0.1

    and save it with a .bat extension

    interface name is the name you noted earlier, 192.168.0.3 is the ip address, 255.255.255.0 is the subnet mask and 192.168.0.1 is the default gateway.

    right click on the saved file and select create shortcut

    put the shortcut on the desktop and right click on it and select properties

    on the shortcut tab click advanced

    tick the box to run as administrator

    click OK and click OK

    do come back if you experience any problems.

    1 person found this answer helpful.
    0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Anonymous
    2018-08-17T10:10:14+00:00

    Thanks Martmcd 

    The problem I encountered was the PC booted and took me to the background image, I click the mouse/keyboard to logon, and get the logon prompt, then the network icon bottom right has a disconnected icon, so even if I try and put in any password it wont allow it as it cant get to the internet. 

    Can I put the batch command in the file and put in my start up and it will run it before I even log on?

    0 comments No comments