How to connect two pc's via modem? (server = linux, client = windows)
SlackwareThis 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.
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.
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).
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
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.
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
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.
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.
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.
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).
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.
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
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.
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
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.
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?
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)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.