Connect to a database via dynDns

23 views
Skip to first unread message

sh

unread,
Jan 8, 2012, 1:03:47 PM1/8/12
to H2 Database
Hello,

I try to connect to a database via DynDNS, and it doesn't work.
What have I done:
I started a server on the database PC with -tcp and -tcpAllowOthers
I verified that I can connect to the DB from
- the PC itself
- another PC in my home network
I installed windows firewall rules for port 9092 (incoming, outgoing)
I installed a NAT for port 9092 in my FritzBox 7270.
(That the NAT mechanism is working is veryfied by another NAT for port
80 which will get a Welcome Website from the same PC)
All I do is to change the hostname to localhost (if so), real
hostname, and xxx.dyndns.org. The first 2 are working.
DB is running on Windows 7.

Does anybody know about the problem? nIs ther a howTo somewhere?

sh

unread,
Jan 9, 2012, 4:46:50 PM1/9/12
to h2-da...@googlegroups.com
OK, Problem solved-
it seems that it's impossible to circular connect a H2 database via DynDNS.
Tried it with a friend from his network into mine- everything worked immediately.
Seems the NAT and firewall entris were correct.

Bye, Stephan

Ryan How

unread,
Jan 10, 2012, 2:38:16 AM1/10/12
to h2-da...@googlegroups.com
You can't connect to an internal host using the external IP unless you
have NAT reflection on your router. Some do and some don't.

But what you can do is put a static entry for yourhost.dyndns.org in
your routers DNS list and map it to the internal IP. So internally your
clients will resolve to the internal address, and externally to the
external address.

Hope that makes sense!

Ryan

Reply all
Reply to author
Forward
0 new messages