Friday, March 27, 2015

How to Connect Two PC VIA LAN Cable ?

How to connect two PC to enable file sharing b/w them.


Solution

Using crossover Ethernet cable connect both PCs via the (RJ45) port.

PC - 1:

  • Open My Computer > Properties > Computer Name.
  • Change Computer Name to A and Workgroup name to ABC then click OK to save changes.
  • Open Control Panel > Network Connections.
  • Right click your LAN connection and select Properties.
  • Select Internet Protocol (TCP/IP) > Properties.
  • Enter those values:
    • IP Address - 192.168.0.1
    • Subnet Mask - 255.255.255.0
  • Leave other fields blank then click OK to save changes.


PC - 2:

  • Open My Computer > Properties > Computer Name.
  • Change Computer Name to B and Workgroup name to ABC and click OK to save changes.
  • Go to Control Panel > Network Connections.
  • Right click on your LAN connection and select Properties.
  • Select Internet Protocol (TCP/IP) > Properties.
  • Enter the following values:
    • IP Address - 192.168.0.2
    • Subnet Mask - 255.255.255.0
  • Leave other fields blank and click OK to save changes.

Finalizing your settings

After connections and settings have been properly saved, both PCs should be connected by local network. You might need to restart both PCs. You should check if the connection is working by pinging one PC from the other.
  • For PC-1, Start > Run > CMD > ping 192.168.0.2
  • For PC-2, Start > Run > CMD > ping 192.168.0.1
  • You can view the computers in My Network Places. You can now use this local connection to play multiplayer games or share files. You can also map a drive on another computer to a local drive by just using My Computer > Tools > Map Network Drive > Select the Drive Letter and the network path of the shared folder on the other PC.



Thankyou.....

3 comments:

  1. Awsme Blog.........

    ReplyDelete
  2. #include
    int main()
    {
    long int num,sum,r;
    printf("\nEnter a number:-");
    scanf("%ld",&num);

    while(num>10)
    {
    sum=0;
    while(num)
    {
    r=num%10;
    num=num/10;
    sum+=r;
    }
    if(sum>10)
    num=sum;
    else
    break;
    }
    printf("\nSum of the digits in single digit is: %ld",sum);
    return 0;
    }

    Output:
    Enter a number: 459
    Sum of the digits in single digits: 9 (4+5+9= 18, 1+8=9)

    ReplyDelete