Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: How to open port 80 for monkey?, or any other port for that matter< Next Oldest | Next Newest >
gmvasco Offline





Group: Members
Posts: 6
Joined: Oct. 2006
Posted: Oct. 28 2006,14:50 QUOTE

I can run Monkey (I type "localhost" in dillo's address bar) and it is running fine.
Trouble is I can't open port 80 so I can see my pages on other computers. Not even in my LAN, and I have port 80 open in my router.
I've checked the open ports in command line, and there are none. I've read in the FAQs (or was it the wiki?) that DSL comes with all ports closed by default.

So... How do I open a port?
Thank you guys.
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Oct. 28 2006,17:52 QUOTE

Starting any websever will open a port. Which port depends on the server's configuration file. The default Monkey server in DSL opens port 80. Perhaps your issue is a nameserver/DSL issue? Are you trying to access by IP number or name.

To see Monkey opened port 80, type

netstat -nl | grep 80
Back to top
Profile PM WEB 
gmvasco Offline





Group: Members
Posts: 6
Joined: Oct. 2006
Posted: Oct. 28 2006,23:14 QUOTE

Thank you for your reply.
I am trying to access DSL by IP, not name.
So, you were right, when monkey is not running, that command didn't do anything, but when it WAS running, it presented this output:
root@box:~# netstat -nl | grep 80
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN    

I don't like the address 0.0.0.0 then port 80.
I know that my LAN address for this machine is 192.168.2.102 so I'm guessing that the problem lies there. Any sugestions?

P.S. I tried editing monkey.conf from ServerName 127.0.0.1 to ServerName 192.168.2.102 and restart monkey but still, no dice.

P.P.S. edit: I can access the monkey page in my DSL machine either by putting localhost or 192.168.2.102 in the address bar. But not from other machines in my LAN but I can connect to them (samba for instance) and to the internet (this post was made from the computer in question)
Back to top
Profile PM 
Winter Knight Offline





Group: Members
Posts: 146
Joined: April 2006
Posted: Nov. 04 2006,01:35 QUOTE

A little primer on ports. Rather than saying that DSL has all ports closed by default, it would be clearer to say that DSL does not run any remote servers by default. No servers mean that they don't open any ports. There isn't anything special you have to do to open these ports other than run a server, such as monkey.

You mentioned that you opened a port in your firewall. That is no good unless you are running the service on your firewall, which is sounds like you are not. You need to forward port 80 to your DSL machine.

But it sounds like you have bigger problems, if you can't even access your web server from another computer on you LAN. Monkey should work by default. It did for me.

Few questions:
1) Are you running a firewall on your DSL machine? Router doesn't count, because you can't access from your LAN either. Are you running iptables or something like that? DSL does not have a firewall installed by default.

2) Could you post your monkey.conf file? I'm stumped. Maybe someone will spot something in that.

3) LiveCD, Frugal, HD Install, or other?

Is there anything else you can think of that you might have done? Any sort of weird routing software on your DSL box?

Edit: Really, my first impression to your problem is that monkey is bound on the lo interface. This would mean that you can only access it from the computer it is running on. I don't know why it would be bound like that, or how to fix it. I'm pretty sure it isn't by default. It might be a monkey.conf option.
Back to top
Profile PM 
Thulemanden Offline





Group: Members
Posts: 95
Joined: Sep. 2005
Posted: Nov. 05 2006,14:44 QUOTE

I tried Monkey. It kept closing down after some hours.

I can recommend install Apache through MyDSL.

Type in the paths in the config file and start by executing httpd.

Someone please correct me if wrong og elaborate.

Try mine at http://83.52.35.50


--------------
Linuxcounter member #322220. http_//www.linuxcounter.org
Back to top
Profile PM WEB 
5 replies since Oct. 28 2006,14:50 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: How to open port 80 for monkey?

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code