LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-28-2007, 02:17 PM   #1
bg108
LQ Newbie
 
Registered: Nov 2007
Posts: 17

Rep: Reputation: 0
swat - localhost:901 unable to connect


Hi,

I'm using Ubuntu 7.1 distribution. I've already installed samba and swat on my system. However, when I open browser and type http://localhost:901/ it says "Unable to connect , Firefox can't establish a connection to the server at localhost:901"

Below are informations about my installation:

root@tim:/# whereis samba
samba: /etc/samba /usr/lib/samba /usr/share/samba /usr/share/man/man7/samba.7.gz

root@tim:/# whereis swat
swat: /usr/sbin/swat /usr/share/man/man8/swat.8.gz

root@tim:/# cat /etc/services | grep swat
swat 901/tcp # swat

root@tim:/# cat /etc/inetd.conf | grep swat
swat stream tcp nowait.400 root /usr/sbin/tcpd /usr/sbin/swat

Do I have to do any other configurations ? Btw, when I go the browser and type http://localhost, and the same problem happens, however if I ping localhost in the shell, localhost does respond....

Please help
 
Old 11-28-2007, 02:38 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
run "ps ax" to check if swat is running... have you started the service at all? if you have, run "lsof -i" to see what is listening on what ports.
 
Old 11-28-2007, 03:30 PM   #3
bg108
LQ Newbie
 
Registered: Nov 2007
Posts: 17

Original Poster
Rep: Reputation: 0
As your instruction, after I do

>swat&
and look at

root@tim:/etc/samba# ps aux | grep swat
root 10932 0.2 0.1 9020 2172 pts/0 T 14:40 0:00 swat

And yes swat is running, but I still can't access http://localhost:901/

Any Ideas why ?

Last edited by bg108; 11-28-2007 at 03:43 PM.
 
Old 11-28-2007, 03:51 PM   #4
bg108
LQ Newbie
 
Registered: Nov 2007
Posts: 17

Original Poster
Rep: Reputation: 0
Omg, I'm so stu......

All my configurations are correct. All I need to do is starting inetd service and I'm able to access to SWAT page now.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
samba/swat: can't connect to "http://localhost:901/" bioe007 Slackware 5 06-05-2007 12:14 PM
SWAT cannot connect to localhost port 901 KhmerDucky Linux - Networking 1 06-10-2005 02:17 PM
Samba - Swat: Cannot Connect to Localhost:901 Sloppyunderfoot Linux - Networking 3 02-10-2005 01:26 PM
SAMBA & SWAT - Connection refused when attempting to connect Localhost:901 ScooterB Linux - Networking 3 12-24-2003 05:15 PM
SWAT does not work when calling localhost:901 themorph Linux - Networking 2 03-07-2002 12:04 AM


All times are GMT -5. The time now is 06:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration