Connecting to Win2K from the Z
From OESF
Submitted by corky on 10.25.03
READ ALL OF THE HOWTO FIRST.
This was tested on win2k with the SL5500 3.13 Sharp rom using Qtopia Desktop and will work on both a serial cable and the AIR Cable.
All of the windows serial Howto's I have seen, including the 2 that I did only deal with connecting to the Z from windows via DUN (Dial-up Networking). This is ok but when you suspend the Z you have to go to the PC to reconnect. This Howto will deal with connecting to Windows from the Z. There are some problems With windows when you do this but they are more inconveniences than problems and I will go over them as we go along.
1. We first need a DUN connection to work with, so if you are don't have one set up already follow my Serial sync with Qtopia Desktop Howto also there are some suggestions in my Air Cable Serial Setup Howto on how to get sync to work on serial with no IP address changes. get Dun working before you continue.
2. On the Z in /etc/ppp/peers/ (if peers does not exist create it) add the following config file I called it dialpc
-------------------------------------CODE------------------------------ -detach idle 3600 nocrtscts local lock /dev/ttyS0 115200 user "Guest" connect "/usr/sbin/chat -v -f /etc/chatscripts/win2k" defaultroute 192.168.129.201: -------------------------------------END CODE---------------------------
/etc/chatscripts/win2k -------------------------------------CODE------------------------------ # TIMEOUT 360 "" "CLIENTCLIENT\c" "SERVER" "SERVER\c" -------------------------------------CODE------------------------------
The last line is the IP address of the Z (don't forget the ":" at the end
3. On the Z in /etc/ppp/ add the following script I called it pcdial.
-------------------------------------CODE------------------------------ #!/bin/bash exec pppd call dialpc& -------------------------------------END CODE---------------------------
that's it for the Z
4. On windows go to settings/control panel/Network and Dial-up Connections and click on Make New Connection.
a. Click Next on the Welcome Screen
b. Click on Accept incoming connections and then click on Next.
c. Click the box next to the your DUN connection for the Z and then click on Next.
d. Click on Do Not allow virtual private connections and then click on Next.
e. Click Next on the Allow Users screen.
f. Check the Internet Protocol box and then click properties
1. The only box has to be checked here if it is not already is the Allow calling computer to specify its
own IP address. But you can setup the windows IP address so Sync works(this is covered in
Air Cable Serial Setup). I use 192.168.129.1 for the From address and 192.168.129.2 for the To
address. Windows usually uses the first one but wants a range. Now click OK and then Next
g. You can change the name if you want to and then click Finish.
5. Your done (well almost) now for the inconveniences.
a. this ties up your com port waiting for a call. To get around this(if you want to use it for
something else) you have to go to Settings/Network and Dial-up Connections Right click on
what ever you called your connection and select Properties and Uncheck the box for the
com port then click OK. You also have to remember to recheck the box when you want to use it.
b. If you don't disconnect properly pppd will not shut down on the Z. And you won't be able to
connect to the PC again. From the Konsole enter su -c "/etc/ppp/ppp-off" and this will stop pppd.
6. To connect to the PC from Konsole enter su -c "/etc/ppp/pcdial" and you should see the Z connect to
the PC and The IP addresses.

