Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'd like to access my Ubuntu headless box from outside world.

I'm trying to do port forwarding and I think something is going wrong...

I've d-link DSL-2640B

Advanced -> Port Forwarding

serverName: Web Server (HTTP)

External port start: 8891

External port end: 8891

TCP

Internal port start: 8891

Internal port end: 8891

Server IP: 192.168.1.99

Remote IP Addres: ???????

nboundFilter: Allow All

wan interface: ppp0_2

share|improve this question
add comment

2 Answers

Is your apache server running on port 80 or 8891? The default apache setup for ubuntu sets it up to listen on port 80, which means you need to forward port 80 on your router instead of 8891.

If you specifically only want to use that port (8891), then you need to go into your /etc/apache2/ports.conf file and change "Listen 80" to "Listen 8891" and then restart the server.

share|improve this answer
    
my apache is running on port 8891. –  Sandro Dzneladze Feb 5 '12 at 19:44
add comment
up vote 0 down vote accepted

So for anyone who has same problem... There was no problem.

I was trying to access my server apache from within WAN with publicIp:port

I simply tried to browse from different internet network and I got routed correctly to server with publicIp:port.

Now why is this so is subject of another question :)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.