LinuxQuestions.org
Help answer threads with 0 replies.
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, 01: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, 01:38 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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, 02: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 02:43 PM.
 
Old 11-28-2007, 02: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
SWAT cannot connect to localhost port 901 KhmerDucky Linux - Networking 2 02-09-2020 03:58 PM
samba/swat: can't connect to "http://localhost:901/" bioe007 Slackware 5 06-05-2007 11:14 AM
Samba - Swat: Cannot Connect to Localhost:901 Sloppyunderfoot Linux - Networking 3 02-10-2005 12:26 PM
SAMBA & SWAT - Connection refused when attempting to connect Localhost:901 ScooterB Linux - Networking 3 12-24-2003 04:15 PM
SWAT does not work when calling localhost:901 themorph Linux - Networking 2 03-06-2002 11:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:14 PM.

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
Open Source Consulting | Domain Registration