Can't establish connection to server at localhost:8080

Asked by Motion_Noob

I've restarted Motion, and I'd like to control it now. In Firefox, both http://localhost:8080 and http://127.0.0.1:8080 return a "can't establish connection to the server" error.

Does restarting Motion automatically restart the webserver?

If not, how can I restart the webserver Motion is using in Ubuntu?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu motion Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Fernando Miguel (fernandomiguel) said :
#1

please check if it is running and binded to the port:
$ ls /var/run
$ sudo netstat -pluta

Revision history for this message
Motion_Noob (motion-noob) said :
#2

Pluta? Or puta ?

Revision history for this message
Motion_Noob (motion-noob) said :
#3

Here are my results:

john@john-UBU-desktop:~$ ls /var/run

acpid.socket dbus pppconfig
atd.pid gdm.pid screen
avahi-daemon gdm_socket sdp
console hald sendsigs.omit
ConsoleKit klogd sudo
console-kit-daemon.pid motd syslogd.pid
crond.pid network system-tools-backends.pid
crond.reboot NetworkManager.pid utmp
cups PolicyKit

john@john-UBU-desktop:~$ sudo netstat -puta

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 localhost:ipp *:* LISTEN 4622/cupsd
udp 0 0 *:43969 *:* 4577/avahi-daemon:
udp 0 0 *:mdns *:* 4577/avahi-daemon:

Firefox still returns a "Firefox can't establish a connection to the server at localhost:8080 .

Revision history for this message
Fernando Miguel (fernandomiguel) said :
#4

i cant see motion running or the port binded.

please try:
$ sudo /etc/init.d/motion stop
$ sudo /etc/init.d/motion start

Can you help with this problem?

Provide an answer of your own, or ask Motion_Noob for more information if necessary.

To post a message you must log in.