You are not logged in.

#1 2011-05-17 15:52:35

Crooksey
Member
From: UK ~
Registered: 2006-08-14
Posts: 415
Website

Cant access server through external IP address

I have just configured a new VPS for rails hosting.

I am testing an app with WEBrick ruby server.

I can access locally via links, so i know the server is working.

However I cant access through the external IP adress.

hosts.allow

#
# /etc/hosts.allow
#
sshd: ALL: ALLOW
httpd: ALL: ALLOW
ruby: ALL: ALLOW
WEBrick: ALL: ALLOW
webrick: ALL: ALLOW
# End of file

hosts.deny

#
# /etc/hosts.deny
#
ALL: ALL
# End of file

If anyone has any ideas, they would be greatly appreciated smile


Arch Linux since 2006
Python Web Developer + Sys Admin (Gentoo/BSD)

Offline

#2 2011-05-17 21:02:35

xxxspuddy
Member
Registered: 2007-05-15
Posts: 57

Re: Cant access server through external IP address

Do you have a router or firewall, if yes is it forwarding the correct ports?


A temporary file is just a pipe with an attitude and a will to live.

Offline

#3 2011-05-17 21:10:28

Naicamine
Member
Registered: 2011-05-17
Posts: 3

Re: Cant access server through external IP address

By the external address are you referring to your external ip of your modem, or your lan address?
As in are there any routers or firewalls in between that need ports forwarded?

You can check to see if the ports are open with a port scanner such as nmap or with netcat or telnet. Check it locally, with 127.0.0.1 and with the lan IP for instance 192.168.x.x or 10.x.x.x and then check from the client.

That should narrow down where the issue is.

Offline

#4 2011-05-17 22:57:14

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,237
Website

Re: Cant access server through external IP address

Since you mention VPS, I'm assuming it is a cloud hosted server without a NAT router in front of it...

Are you running iptables?
`iptables -nvL`

Offline

Board footer

Powered by FluxBB