Solved hostname redirects to router config page

D-link Systems, inc. d-link adsl2+ modem...
March 13, 2012 at 01:34:10
Specs: Linux x86_64
I'm sorry, I'm new to networks and this is my first time here. I hope some one know how to help me out :-)

My router/modem is a DSL-2740B

I created a hostname (say example1.com). At my service provider I was able to create a DNS setting where I specified my routers IP address.

In my router I think I created a port forward (TCP port 8080 on both external and internal) with the ip address of a small "web server" (an Arduino module for home automation).

When I enter my hostname I get to see my router config page instead of my "Arduino page".
By entering the local IP from this Arduino I do get to see this page, indicating its there and working.

I'm happy with all the help I can get


See More: hostname redirects to router config page

Report •


✔ Best Answer
March 13, 2012 at 06:24:17
Are you testing this on a computer external to your network? It won't work otherwise. Sorry I didn't think of this earlier.

If you are testing internally that explains why it is not working. If that is the case, your original configuration was probably correct all along.

Port forwarding will only work when you access your router from the Internet, not from your internal network. I hope it's as simple as that.



#1
March 13, 2012 at 01:52:52
You say "when I enter my hostname". You need to enter:

http://hostname:8080

Is this what you are doing?

And, as an aside, I would turn off Remote Management unless you really need it (in which case at least set it to a port other than 80). It's a huge security risk.


Report •

#2
March 13, 2012 at 02:51:37
Hello ijack.

Thank you for taking the time to reply.
When I enter http://hostname:8080 I get the firefox "Unable to connect" page. Without the 8080 my router config page.

According to my router, the remote management setting was disabled.
Which port would you recommend me to use?
According to my service provider I can use any port with the exemption of port 25, 135-139 and 445.


Report •

#3
March 13, 2012 at 05:07:51
The easiest port to use would be 80 as you wouldn't have to specify it when you accessed the page. Try that and see what happens when you forward port 80 on the router to port 80 on the internal web server.

The fact that port 8080 failed would seem to indicate that you got the port forwarding wrong. The other possibility is that the web server responds only to its own hostname. In that case the "example.com" entry that you create in DNS should exactly match the hostname of the computer running the web server. I'm puzzled that you get the router configuration page if you have disable Remote Management; you should get no response.

Another simple troubleshooting step is to try connecting with the dotted quad IP address.


Report •

Related Solutions

#4
March 13, 2012 at 05:45:22
Thank you for your quick reply! Much appreciated!

Its a shame I can not include screenshots

I changed it back to port 80 in my port forward settings. It says now in my router:
Name: Arduino
Address: 192.168.1.177
External Port: 80
Internal Port: 80
Protocol: TCP

The address "192.168.1.177" is the address from my Arduino and by entering this into my browser I get to see the correct Arduino page.

By entering example.com I get my router config page.
I also created a dynamic DNS (free account from D-Link).
So I now have: example.com (directing to router config)
And I have: example.dlinkddns.com which unfortunately also directs to my router config :-)

The IP config I used for example.dlinkddns.com is:
IP in DNS: 78.xx.xx.x90 (x = digit)
Browser IP Address: 78.xx.xx.x90

As I didn't knew what to specify, I specified twice the same ip address (found on whatismyip.com)

I'm basically following a tutorial on http://www.instructables.com/id/Ser... but I find it quit embarrassing that I'm not even able to follow these simple steps :-)

I forgot to mention that in the domain name DNS settings from my service provider I also specified 78.xx.xx.x90.

Hmm... when I think about it, do I maybe have to specify a different ip address somewhere?


Report •

#5
March 13, 2012 at 06:24:17
✔ Best Answer
Are you testing this on a computer external to your network? It won't work otherwise. Sorry I didn't think of this earlier.

If you are testing internally that explains why it is not working. If that is the case, your original configuration was probably correct all along.

Port forwarding will only work when you access your router from the Internet, not from your internal network. I hope it's as simple as that.


Report •

#6
March 13, 2012 at 06:39:29
Yes I'm indeed testing this internally :-)
I will try it externally, I didn't think it would matter so I never mentioned it.

Thank you so much for your help!


Report •

#7
March 13, 2012 at 07:37:47
I just came back from the library to test it on an external computer.
Guess what.... It works perfectly! :-)

Thanks again for all your help!


Report •

Ask Question