PDA

View Full Version : db500 and web interface remote access problem



Dr.Strangeluv
17th December, 2008, 02:42 PM
Hello forum,

I have a DM500 with Gemini 4.5 at home and I would like to access it via ssh - basically I visit my grandparents a lot and would like to be able to "play around" from there as well. Yesterday I was trying it for the first time at a friend's house, and decided to check the tuning, to see how it works. The problem is that when I tried to connect to the web interface, it refused to work. This is what happened when I tried the ssh to the dm500:

root@dreambox:/etc> wget -O- http : / / localhost
wget: Unable to connect to remote host (127.0.0.1): Connection refused

This means that there is no web server on port 80.

So my questions are:
1 - Any idea why I do not get the normal web interface?
2 - Is there a way to configure the enigma to start the web server?
3 - Is there a way to remotely tune the dm500 without the web interface?

Do I have hope to solve this issue or I should just :giveup: ?

thanks mates,

the dr.

Curious123
17th December, 2008, 02:55 PM
Have you set up dynamic host for your dreambox and forwarded the ports from your router?

Dr.Strangeluv
17th December, 2008, 03:18 PM
hi m8,

yes, i did it and can connect to the dm via ssh, but still cant get the web interface :hmmmm:

any other ideas?

the dr.

wmccull
18th December, 2008, 12:27 AM
Sorry to jump in.. but you did open port 80 and point it towards the Dreambox ?

Dr.Strangeluv
18th December, 2008, 05:34 PM
Yes, port 80 is open.

I sent the wget from the dreambox itself.

Anyhow, I tried the following at the DB itself:
root@dreambox:~> wget -O - cPanel? (http://localhost)
wget: Unable to connect to remote host (127.0.0.1): Connection refused root@dreambox:~> wget -O - cPanel? (http://root:myPassword@localhost)
wget: Unable to connect to remote host (127.0.0.1):
Connection refused As you can see, it seems that Enigma does not accept connections on port 80.

Just to prove the point, I have run (again on the DB) the following:
root@dreambox:~>
root@dreambox:~> httpd
root@dreambox:~> wget -O - cPanel? (http://root:myPassword@localhost)
wget: server returned error 404: HTTP/1.0 404 Not Found root@dreambox:~> ps | grep httpd
1012 root 500 S httpd
1016 root 412 S grep httpd
root@dreambox:~> kill 1012
root@dreambox:~>

This proves (I think) that the problem is not the access to port 80, but rather that the Enigma does not (for some reason) reply on this port.

the dr.

Dr.Strangeluv
22nd December, 2008, 03:33 PM
m8s, thnx a lot 4 your help, i finally solved this problem, check out:

1) I have ssh to another PC running Linux that I have. At this PC I have run the command "script", which caused the PC to record everything I did from this moment to a file

2) I then SSHed to my DB

3) At the DB I issued the commands "killall enigma" and "/bin/enigma"

4) After the enigma (many) startup messages, I did ctrl-C (to kill the enigma), exit (to finish the SSH with the DB) and another exit (to finish the recording caused by the "script" command).

5) I then looked at the recording file, which contained all the enigma startup messages (I did it using vi, but you can use any editors). I looked for the string httpd. And - my oh my - I saw that the httpd was coming up on port 22 ! (for some darn reason...).

6) I then did, at the DB, "wget -O -
cPanel? (http://root:myPassword@localhost:22) and it worked !

that's it 4 now and again, thnx 4 all the help!

the dr.