Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
11-17-2005, 10:25 PM
|
#1
|
Member
Registered: Jul 2005
Location: /dev/ATX3
Distribution: Slackware 11(kernel 2.6.17.13), SuSE 10, Caldera, CentOS 4.3
Posts: 38
Rep:
|
How to connect two pc's via modem? (server = linux, client = windows)
Hi there
Does anybody knows how to connect two pc's using their modems with linux?, acctually the options are:
1. Connecting two pc's, linux as server and windows Xp as client .
2. Connecting two pc's, both machines using linux.
Hope anybody can give me a light.
BTW i'm using slackware 10.2 and the client for sure is using windows xp.
|
|
|
11-17-2005, 10:39 PM
|
#2
|
Member
Registered: Aug 2005
Location: Oregon
Distribution: Kubuntu.
Posts: 848
Rep:
|
Assuming you are actually trying to connect two systems ate two different locations via dialup, one machine would have to be set up as a dial in server, the other would actually make the call to connect. Here is a link to how to setup a linux system to be a ppp (Point to Point Protocol) server.
If you are trying to connect two systems sitting next to each other, then you need either a network crossover cable and network cards for the systems (preffered), or a null modem cable. Modems rely on the phone companies switching equipment to handshake with. The last job I worked at had an old tester that would mimic a phone line for testing modem to modem connectivity. It was just a very scaled down version of the phone company's equipment (it only had 4 lines).
|
|
|
11-17-2005, 11:52 PM
|
#3
|
Member
Registered: Jul 2005
Location: /dev/ATX3
Distribution: Slackware 11(kernel 2.6.17.13), SuSE 10, Caldera, CentOS 4.3
Posts: 38
Original Poster
Rep:
|
Thanks, It cleared what I was looking for .. I'm traying to connect two remote machines via modem (dialup connection), now I know that I need a PPP server for this task..
Thanks a lot. The website you gave me didn't work as well since it's for redhat 6 (pretty old), but I found another one .. just for those who wants to do the same
Linux PPP server
Anyway ... thanks.. now I have another question... If I run apache server on the client (Ex: IE or Firefox), would I be able to test the server remotely? would I be able to see a website on that linux server? Well I guess I will give answers to that questions when I set up this PPP server.
Bye and thanks again
|
|
|
11-18-2005, 12:43 AM
|
#4
|
Senior Member
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145
Rep:
|
I never conneted used a direct modem connection to my machine, but I've seen some lines in /etc/inittab that may interest you:
Code:
# Dialup lines:
#d1:12345:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS0 vt100
#d2:12345:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS1 vt100
Basically, uncommenting the lines (and maybe editing it according to your serial port) will let you connect to the terminals with the modem. Once there, you could check the server locally but using some console browser (links/lynx/elinks/w3m).
Of course, if it would be better if you get some sort of PPP support 
|
|
|
11-18-2005, 01:28 AM
|
#5
|
Member
Registered: Aug 2005
Location: Oregon
Distribution: Kubuntu.
Posts: 848
Rep:
|
Quote:
If I run apache server on the client (Ex: IE or Firefox), would I be able to test the server remotely? would I be able to see a website on that linux server?
|
Yes, but to a limited extent. You have two ways to really view the web site you are creating on the local machine. One is to just open it as a file (file://<path to web location>/index.html). As long as everything is pointing to a relative path (i.e. ../images/me.jpg), it should work ok. The otherway is to either specify the web url, or use localhost (i.e. http://localhost:80). The real limitations are when trying to see how it functions through your internet connection. If this is going to be setup as an isolated web server for data locally, and the machine that is dialing in, you shouldn't run into too many problems.
|
|
|
11-19-2005, 10:15 PM
|
#6
|
Member
Registered: Nov 2005
Distribution: Slackware 10.2 2.6.20
Posts: 68
Rep:
|
The trouble is going to be getting the modem to work under linux. It's nearly impossible to buy a modem that will work with Linux. Any modem will not do, you have to buy wisely. Get an old external modem if at all possible. Best possible speed will be 33.6 so don't waste money on anything faster. (one end must be digital to get above 33.6 - and that's usually at an ISP). A USR Courier will probably work fine, if you can find one, or can afford a new one.
http://www.tldp.org/HOWTO/Modem-HOWTO.html
http://www.usr.com/products/business...s&sku=USR3453B
The Windows XP machine should be easy. Configure it with a regular dialup to internet connection, with the phone number of the linux box. Probably using a username/password setup on the linux box, and definately not root, don't even try; alot of programs deny it by default (thinking ftp, telnet)
Once Linux can handle the modem, you need to setup a PPP server and hand out an IP address, default gateway, dns servers, etc to a caller (the Windows XP box).
Back in the pre-Internet days everyone was doing this, so the info must be out there and well documented, somewhere.
Good luck.
Brian
|
|
|
11-28-2005, 03:16 PM
|
#7
|
Member
Registered: Jul 2003
Location: Hamburg, Germany
Distribution: KDE neon, Ubuntu server
Posts: 80
Rep:
|
GrueMaster:
I was just wondering if I could connect my laptop to my PC directly thru an RJ11-to-RJ11 cable between the two modems. I guess the answer is no, is it? Even if I set up a dial in server in one of the computers, this won't work? Wouldn't the modems talk ppp to each other w/o need for the telco's circuit-switched path? Why is this? Why is it necessary the signaling protocol and voltage introduced by the telco equipment if the two modems are connected directly to one another?
I find this to be a really interesting matter! I'm curious about it! Will appreciate any comments!
Regards,
Fred
Quote:
Originally posted by GrueMaster
Assuming you are actually trying to connect two systems ate two different locations via dialup, one machine would have to be set up as a dial in server, the other would actually make the call to connect. Here is a link to how to setup a linux system to be a ppp (Point to Point Protocol) server.
If you are trying to connect two systems sitting next to each other, then you need either a network crossover cable and network cards for the systems (preffered), or a null modem cable. Modems rely on the phone companies switching equipment to handshake with. The last job I worked at had an old tester that would mimic a phone line for testing modem to modem connectivity. It was just a very scaled down version of the phone company's equipment (it only had 4 lines).
|
|
|
|
11-28-2005, 06:16 PM
|
#8
|
Member
Registered: Aug 2005
Location: Oregon
Distribution: Kubuntu.
Posts: 848
Rep:
|
Most internal modems (in my experience) can't handle lease line transmissions. There are external modems that can, and with them, you could possibly do this, but the question is why? If you have serial port access, you could get far better speed using a null-modem cable. Most modems max speed is 56k baud, whereas the serial ports of most systems will easily do twice that. See the leased-line howto if you really want to try this. The site also has a diagram for making a null-modem cable.
|
|
|
11-29-2005, 05:22 PM
|
#9
|
Member
Registered: Jul 2003
Location: Hamburg, Germany
Distribution: KDE neon, Ubuntu server
Posts: 80
Rep:
|
Ok, thanks a lot for shedding some light on this topic!
So, yes, it is possible to connect the two modems directly thru an rj11 cable. However, these ought to be external modems, capable of handling leased line connections. Internal/integrated modems (such as in laptop computers) usually won't work...
As of why would I wanna do this?. Simple: just curiosity! I wanted to learn if it was possible to establish a connection directly between the two internal modems I already got installed. And now that I know all what's required to establish such a connection, I'll never bother... I do know that, if no ethernet connection is available, it will be a lot more functional to network the two computers via an RS232 or USBtoUSB cable. I'll have to make/buy one, though 
It is always good 2 learn something new!
Regards,
Fred
|
|
|
11-29-2005, 06:04 PM
|
#10
|
Senior Member
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024
Rep:
|
I remember back in the BBS days connecting two computers via modems and an RJ-11 cable. If I recall it correctly, the key was using an init string, as the dial string, that ignored tone detect and trying to dial a number and just opened up the link. With some googling, you may be able to find this information, but if the two computers are in the same room, I'd slap cheap network cards in them to connect them together.
|
|
|
11-30-2005, 03:33 PM
|
#11
|
Member
Registered: Jul 2003
Location: Hamburg, Germany
Distribution: KDE neon, Ubuntu server
Posts: 80
Rep:
|
hmmm interesting... guess I have to keep on googling then, although so far I have not found any accurate info.
Initially that's how I thought it would work, i.e., using an appropriate dial string to start the handshaking between the two modems, and having a ppp dial in server running on one of them... that's why I was asking why do they need a dial tone if they are directly connected to one another?
On the other hand, I'd just like to do this to see that yes, technically it works! I really don't need to network my 2 computers! ...just curious to know if I can make them talk to each other through their internal modems...
Regards,
Fred
|
|
|
12-02-2005, 04:38 PM
|
#12
|
Senior Member
Registered: May 2003
Distribution: Slackware, OpenSuSE
Posts: 1,839
|
Quote:
Originally posted by Slim Backwater
The trouble is going to be getting the modem to work under linux. It's nearly impossible to buy a modem that will work with Linux. Any modem will not do, you have to buy wisely. Get an old external modem if at all possible. Best possible speed will be 33.6 so don't waste money on anything faster. (one end must be digital to get above 33.6 - and that's usually at an ISP). A USR Courier will probably work fine, if you can find one, or can afford a new one.
|
Hmmm. I just got an Agere Softmodem in my laptop working, and use it while I am writing this, with no problem. Agere is the successor of Lucent. Agere/Lucent is used in many laptops, so the chance to get an internal modem to work is a bit better than you describe, although far below 50%. In general good external modems are in fact more reliable.
Regarding USR: Many 3Com/USR modems are very good in data mode, but a nightmare when you want to use their fax functionality. If you are interesting in faxing with Linux, eg with the brilliant Hylafax, I'd recommend to avoid USR/3Com. ELSA is better, but not very robust. The best low-cost Fax Modem I know is the Acer Microlink 56k. Highly recommended, and really reasonably priced.
gargamel
|
|
|
12-17-2007, 03:36 PM
|
#13
|
LQ Newbie
Registered: Dec 2007
Posts: 2
Rep:
|
multiple calls
Hi Guys
I also would like to know if a single modem to the server is capable of handling multiple calls from clients at on goal. If so, how?
To put myself clear; In conventional phone systems if someone is already using the line it signals busy to anyone who tries to connect. Is it the same in PPP?
Last edited by lncube; 12-17-2007 at 03:47 PM.
|
|
|
03-20-2008, 07:38 PM
|
#14
|
LQ Newbie
Registered: Mar 2008
Posts: 1
Rep:
|
[QUOTE=lncube;2993768
1) a single modem to the server is capable of handling multiple calls from clients?
2) To put myself clear; In conventional phone systems if someone is already using the line it signals busy to anyone who tries to connect. Is it the same in PPP?[/QUOTE]
Answers:
1) No, a single modem handles a single analog telephone line, which in turn, can handle only one call at a time.
2) Yes, the second caller would receive a busy tone, then the calling modem will recognize it, and will hang up accordingly, to redial later (if programmed so). And just to make things clear, the second caller will not have the chance to start ppp anyway, until the first caller disconnects.
Best regards from a long term modem user (not master, just user)
|
|
|
03-20-2008, 08:38 PM
|
#15
|
Moderator
Registered: Aug 2002
Posts: 26,541
|
AFAIK directly connecting two modems together will not work. You need some kind of telephone line simulator.
|
|
|
All times are GMT -5. The time now is 12:26 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|