DIGIT-ARC read-only archive · snapshot: July 23, 2026

How to wirelessly connect LINUX and Windows

25 posts · originally from https://geek.digit.in/community/threads/how-to-wirelessly-connect-linux-and-windows.58708/

eagle_y2j
eagle_y2j Original post #1
May 26, 2007 at 7:48 AM
I want to network my Linux (Ubuntu &Suse ) desktop with my dad's Windows XP laptop to share files and printers over wifi connection .

My desktop confi :-

Dual boot (ubuntu & suse ) with one ethernet card and BSNL type 1 modem ...


Laoptop:-

Windows XP (home) with wifi adaptor and BSNL Type 2 wifi modem..

Objective :--Access FAT32 drives of my linux desktop wirelessly using windows desktop .

Is this possible ?
praka123
May 26, 2007 at 8:04 AM
just configure samba server in ur Desktop machine(ubuntu or suse).now U need bluetooth(some external thing-dongle) enabled on ur Desktop Side.
eagle_y2j
May 26, 2007 at 4:16 PM
praka123 said:
just configure samba server in ur Desktop machine(ubuntu or suse).now U need bluetooth(some external thing-dongle) enabled on ur Desktop Side.

can I use ethernet port of my wifi router to connect desktop with laptop ?

ok one more query is it possible to Network linux and windows using a router for internet connection and file sharing ?
mediator
May 26, 2007 at 5:28 PM
For both questions => yes!
Search the forums, this has been discussed!
eagle_y2j
May 26, 2007 at 8:16 PM
mediator said:
For both questions => yes!
Search the forums, this has been discussed!

searched ... can u plz pin-point any relative thread.

btw I tried connecting my laptop using wifi and ethernet for desktop but I can access net only through laptop ,desktop ends up with some other IP address i.e 169.189.*.* (using DHCP) it should be 192.168.1.*
gary4gar
May 26, 2007 at 8:30 PM
check the following
*ubuntuforums.org/showthread.php?t=202605
*help.ubuntu.com/community/SettingUpSamba
*lists.samba.org/archive/wireless/2003-December/002692.html
mediator
May 26, 2007 at 9:38 PM
1. Just connect ur desktop to wifi router using ethernet wire (or wirelessly if possible)
2. Then connect ur laptop wirelessly!

This is done as :
1. Configure ur wireless router with "internal/LAN" IP like 192.168.0.1
Then grant ur desktop an IP like 192.168.0.2 and let ur laptop acquire IP automatically!! Ping from one pc to another and u have them as u want!!

2. Now just enable samba on linux and follow post here post#5 and configure windows!

3. Ur done!!
eagle_y2j
May 27, 2007 at 6:53 AM
mediator said:
1. Just connect ur desktop to wifi router using ethernet wire (or wirelessly if possible)
2. Then connect ur laptop wirelessly!

This is done as :
1. Configure ur wireless router with "internal/LAN" IP like 192.168.0.1
Then grant ur desktop an IP like 192.168.0.2 and let ur laptop acquire IP automatically!! Ping from one pc to another and u have them as u want!!

Ok here wat I followed :

Assigned a static IP address to network card in Suse 10.2 wiz 192.168.1.25
*img291.imageshack.us/img291/747/networkerrorrp4.th.png

Added this IP address of linux desktop to LAN client page of my DHCP enabled router (assigned a static IP 192.168.1.25)
*img86.imageshack.us/img86/1008/untitledsw7.jpg

Sucessfully connected wifi adaptor of laptop to internet which is getting an dynamic IP my DHCP of wifi router .

but still both of these desktop and laptop can't ping each other
*img522.imageshack.us/img522/8341/networkerror1hq6.th.png
M
May 27, 2007 at 7:38 AM
Maybe they aren't in the same netmask?
eagle_y2j
eagle_y2j #10
May 27, 2007 at 7:44 AM
here is ipconfig of both systems

windows

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

Windows IP Configuration

Host Name . . . . . . . . . . . . : Jurisprudence
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter Wireless Network Connection:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Intel(R) PRO/Wireless 3945ABG Networ
k Connection
Physical Address. . . . . . . . . : 00-18-DE-15-97-69
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 192.168.1.2
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
DHCP Server . . . . . . . . . . . : 192.168.1.1
DNS Servers . . . . . . . . . . . : 192.168.1.1
192.168.1.1
Lease Obtained. . . . . . . . . . : Sunday, May 27, 2007 6:20:40 AM
Lease Expires . . . . . . . . . . : Wednesday, May 30, 2007 6:20:40 AM

Suse

*img522.imageshack.us/img522/8341/networkerror1hq6.th.png

netmask detail in popup of screenshot

Which OS to prefer for Samba (Ubuntu or Suse)?
mediator
mediator #11
May 27, 2007 at 12:18 PM
Do u have an ADSL router and a Wi-Router connected to it?
eagle_y2j
eagle_y2j #12
May 27, 2007 at 12:49 PM
mediator said:
Do u have an ADSL router and a Wi-Router connected to it?

I am using ADSL cum wifi router and only wifi part is operating ethernet connection is to be solved
mediator
mediator #13
May 27, 2007 at 12:52 PM
Hmmm then follow the IP configuration as stated by me!
eagle_y2j
eagle_y2j #14
May 27, 2007 at 1:01 PM
mediator said:
Hmmm then follow the IP configuration as stated by me!

can't figure how to

1. Configure ur wireless router with "internal/LAN" IP like 192.168.0.1


btw default gateway IP of my router is 192.168.0.1 and when u say
let ur laptop acquire IP automatically
do u mean let laptop get automatic IP from DHCP server ? (presently laptop is geting IP from DHCP)
mediator
mediator #15
May 27, 2007 at 2:16 PM
1. See, Since ur Adsl is the main gateway, therefore it is having an internal IP like 192.168.1.1.
2. Now since ur wi-router is connected to it. Therefore it must be having an IP like 192.168.1.2 or something in 192.168.1.* domain! But this is not the internal IP of ur wi-router. This is the one allocated by ur ADSL to wi-router.
3. So u need to make internal Ip of wi-router 192.168.0.1
4. Now u have to connect Desktop to that wi-router with ethernet which u want and make its IP like 192.168.0.2.
5. Also make laptop which is wirelessly connected => DHCP enabled!

After all the config, find out the IP of both the machines. If they r on same network then ping and post the results.

Also how r u connecting wirelessly on Linux?
eagle_y2j
eagle_y2j #16
May 28, 2007 at 7:18 AM
mediator said:
1. See, Since ur Adsl is the main gateway, therefore it is having an internal IP like 192.168.1.1.
2. Now since ur wi-router is connected to it. Therefore it must be having an IP like 192.168.1.2 or something in 192.168.1.* domain! But this is not the internal IP of ur wi-router. This is the one allocated by ur ADSL to wi-router.
3. So u need to make internal Ip of wi-router 192.168.0.1
4. Now u have to connect Desktop to that wi-router with ethernet which u want and make its IP like 192.168.0.2.
5. Also make laptop which is wirelessly connected => DHCP enabled!

After all the config, find out the IP of both the machines. If they r on same network then ping and post the results.

Also how r u connecting wirelessly on Linux?

dude I am using a bsnl type(ii) modem it is having three ports one wifi ,LAN,USB .

I want to connect laptop(windows) using wifi and desktop(Suse & Ubuntu) using LAN for file and Internet sharing therefore no wireless for Linux .

But present situation is wired as I am not able to connect internet from linux desktop i.e there is some error between bsnl modem and LAN card link previously desktop use to get IP from DHCP of router but to enable file sharing I assigned static IP to desktop via yast and added this new IP in lan client section of modem .

Now it connects to this IP but can't ping modem it self ?
mediator
mediator #17
May 28, 2007 at 11:20 AM
Why do u need to put the entry in modem? The routing table does that for u automatically. Remove that entry and then try.
eagle_y2j
eagle_y2j #18
May 28, 2007 at 4:50 PM
^^^ no use knetwork shows IP address 192.168.1.25 but can't ping or open router gateway ! I think this is only thingh which we need to sort out ....

I was wondering do we need to bridge connection in router confi ?
mediator
mediator #19
May 28, 2007 at 5:56 PM
Hmmmm
*en.wikipedia.org/wiki/Network_bridge

Neways first try connecting both PCs directly using LAN wire and then ping and tell!!

Put desktop on 192.168.1.2, put laptop on 192.168.1.3.
eagle_y2j
eagle_y2j #20
May 29, 2007 at 9:39 AM
mediator said:
Hmmmm
*en.wikipedia.org/wiki/Network_bridge

Neways first try connecting both PCs directly using LAN wire and then ping and tell!!

Put desktop on 192.168.1.2, put laptop on 192.168.1.3.

can't ping it shows IP not reachable both sides

# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2007/05/29 11:47:07

[global]
workgroup = JURISPRUDENCE
map to guest = Bad User
printcap name = cups
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
logon path = \\%L\profiles\.msprofile
logon drive = P:
logon home = \\%L\%U\.9xprofile
os level = 2
preferred master = No
local master = No
domain master = No
usershare allow guests = Yes
hosts allow = 192.168.1.2/255.255.255.0
cups options = raw
include = /etc/samba/dhcp.conf

[homes]
comment = Home Directories
valid users = %S, %D%w%S
read only = No
inherit acls = Yes
browseable = No

[profiles]
comment = Network Profiles Service
path = %H
read only = No
create mask = 0600
directory mask = 0700
store dos attributes = Yes

[users]
comment = All users
path = /home
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/

[groups]
comment = All groups
path = /home/groups
read only = No
inherit acls = Yes

[printers]
comment = All Printers
path = /var/tmp
create mask = 0600
printable = Yes
browseable = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin, root
force group = ntadmin
create mask = 0664
directory mask = 0775
mediator
mediator #21
May 29, 2007 at 7:03 PM
Hmmm, Since u can't connect to internet also then check ur ethernet wire! Get a new crossover ethernet wire and then try!
eagle_y2j
eagle_y2j #22
Jun 2, 2007 at 4:12 PM
Ok one question do I need to have static IP over each system in my network for Samba ?
mediator
mediator #23
Jun 2, 2007 at 6:44 PM
I dunno much about samba....will explore it when I'll replace my dieing PC. But for LAN configuration static IP is usually the way. So go for it!
eagle_y2j
eagle_y2j #24
Jun 2, 2007 at 7:16 PM
sucessfully configured Samba :) I m using DHCP for both machines
mediator
mediator #25
Jun 2, 2007 at 7:19 PM
Good u can write a tutorial now "How to configure Samba" :D.