Title: IPv6 Loopback Works, not IPv4 in Windows 11 Pro
Introduction
In this article, we will discuss the issue of IPv6 loopback working fine, but IPv4 not working in Windows 11 Pro. We will provide a detailed context of the topic, covering key concepts, subtitles, and paragraphs using the <p></p> tags. We will also include code blocks, enclosed within <code> tags. The content inside the code blocks must be properly formatted according to the programming language, including indentation and tabulation as needed. We will exclude the H1 tag title, as it will be provided separately.
Understanding the Issue
When running Calibre server on a laptop with Windows 11 Pro, the IPv6 loopback works fine at http://[::1]:8080/. However, the IPv4 loopback at http://127.0.0.1:8080/ fails with an error: "Can't reach page, connection reset". Similarly, accessing the server at http://192.168.1.135:8080/ also fails with an error: "Can't reach".
Troubleshooting IPv4
To troubleshoot the IPv4 issue, we need to check the network settings, host file, and firewall settings.
Check Network Settings
- Open the Control Panel.
- Click on Network and Internet > Network and Sharing Center.
- Click on Change adapter settings on the left.
- Right-click on your network connection and select Properties.
- Ensure IPv4 is enabled and the IP address and subnet mask are correctly configured.
Check Host File
- Open Notepad as an administrator.
- Go to File > Open.
- Type
C:\Windows\System32\drivers\etc\hostsand click Open. - Ensure there are no entries that could be causing the issue.
Check Firewall Settings
- Open Windows Defender Firewall with Advanced Security.
- In the left pane, click on Inbound Rules.
- In the Actions pane, click on New Rule.
- Select Port and click Next.
- Select TCP and specify the port number (8080 in this case) and click Next.
- Select Allow the connection and click Next.
- Add a name for the rule and click Finish.
Repeat the same steps for outbound rules.
Conclusion
By checking the network settings, host file, and firewall settings, we can troubleshoot the IPv4 issue in Windows 11 Pro. If the problem persists, further investigation may be required, such as checking the server logs or network hardware.