hi
i works in a photo studio and we have two computers linked via direct LAN cable and it works fine. But the problem is, when i connect to the internet via wifi (alfa), it connects with the modem but internet dosent works. And when I disable the LAN, the internet works.

Before i used to connect both the computers via the modem and both the internet and file sharing works fine but i doubt someone steals files through the wifi. Once i found a stranger computer name my network list. After that i decided to separate wifi and LAN. And as a result the above said problem occured.

please help in solving this issue.

Dani AI

Generated

As diagnosed, the behaviour matches a classic routing conflict: the machine has two active network interfaces on the same logical network and Windows is picking the wrong default route (the one with the lower metric). 's suggestion to inspect the IP configuration is exactly the right first step for confirming which adapter is providing a default gateway.

Three practical, low-risk ways to fix this and keep the direct file‑sharing link working:

  1. Make the direct LAN link “local only”
    Assign static IPs to the two studio machines on a different private subnet than the WiFi and leave the default gateway field empty on that LAN adapter. This keeps file transfers on the private link and prevents internet traffic from being sent into the LAN.

  2. Keep the same subnet but control routing with metrics
    If readdressing is not possible, use the IPv4 Advanced settings to disable Automatic metric and set a lower interface metric for the adapter that should carry Internet traffic (the WiFi). The adapter with the smaller metric will be chosen for the default route.

  3. Reduce exposure on the wireless side (security hygiene)
    Turn off file/printer sharing on the WiFi profile, set the WiFi network to Public, enforce strong WPA2/WPA3 encryption and a unique password, and check the router’s client list for unknown devices. If external access to shared folders is needed, use explicit firewall rules or a dedicated file server instead of exposing SMB over a multi‑user WiFi.

When troubleshooting or reporting back, gather ipconfig /all and route print outputs so the active gateway and route metrics can be confirmed. These steps keep the studio LAN usable for fast local transfers while making Internet access reliable and the wireless side safer.

Recommended Answers

All 7 Replies

We would need to know what the IP configuration looks like for both the wifi and LAN adapter.

Also, from each computer, while the 1 is in the error state, run ROUTE PRINT and paste the output here.

0x70002 ...00 1c c0 c1 08 01 ...... Realtek RTL8168D(P)/8111D(P) PCI-E Gigabi

thernet NIC - Packet Scheduler Miniport

===========================================================================
Active Routes:

Network Destination        Netmask          Gateway       Interface  Metric


      0.0.0.0          0.0.0.0      192.168.1.1     192.168.1.9       25
      0.0.0.0          0.0.0.0     192.168.1.20    192.168.1.20       20
    127.0.0.0        255.0.0.0        127.0.0.1       127.0.0.1       1
  192.168.1.0    255.255.255.0      192.168.1.9     192.168.1.9       25
  192.168.1.0    255.255.255.0     192.168.1.20    192.168.1.20       20
  192.168.1.9  255.255.255.255        127.0.0.1       127.0.0.1       25
 192.168.1.20  255.255.255.255        127.0.0.1       127.0.0.1       20
192.168.1.255  255.255.255.255      192.168.1.9     192.168.1.9       25
192.168.1.255  255.255.255.255     192.168.1.20    192.168.1.20       20
    224.0.0.0        240.0.0.0      192.168.1.9     192.168.1.9       25
    224.0.0.0        240.0.0.0     192.168.1.20    192.168.1.20       20

255.255.255.255 255.255.255.255 192.168.1.9 192.168.1.9 1
255.255.255.255 255.255.255.255 192.168.1.20 192.168.1.20 1
Default Gateway: 192.168.1.20

the above is the route print

This is your issue:
0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.9 25
0.0.0.0 0.0.0.0 192.168.1.20 192.168.1.20 20

I assume 192.168.1.9 and 192.168.1.20 are assigned to your machine's LAN and WIFI interfaces. Is that correct?

If so, then your catchall route is directed back into 192.168.1.20 because of the lower metric.

IT looks like your gateway should be 192.168.1.1 for both interfaces, so that when 192.168.1.20 is alive, it sends traffic to the real gateway at 192.168.1.1 instead of back into itself which will end up going nowhere.

If these are static, then change the default gateway on 1.20 to be 1.1 instead and that will fix your issue. The other solution would be to change the metric on the interface so that 1.9 has a lower metric than 1.20. But the 1st solution is 'cleaner'.

please show me how to change these stuffs
i am really getting mad with this

Open up the interface in Network Connections - Change adapter settings. Pull up properties for the wifi, then properties for tcpip v4. I'll bet you have a static IP here for 192.168.1.20. Just remove the gateway. Then test it all again.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.