LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   swat - localhost:901 unable to connect (https://www.linuxquestions.org/questions/linux-newbie-8/swat-localhost-901-unable-to-connect-603053/)

bg108 11-28-2007 01:17 PM

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

acid_kewpie 11-28-2007 01:38 PM

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.

bg108 11-28-2007 02:30 PM

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 ?

bg108 11-28-2007 02:51 PM

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.


All times are GMT -5. The time now is 10:08 AM.