I don't know ip address and host name of a system on internet.I only know database name, how do i connect with that database using internet and without using any third part tool.
Asked
Active
Viewed 1,468 times
1
-
4How do you send snail-mail to a person, if you only know the persons name and not his/her address? – Kavli May 10 '16 at 10:31
-
1If the problem is that you have a dynamic ip, then you either have to use a 3rd party tool, or write one yourself. You need to store the ip address of the server somewhere where you can fetch it. – James Z May 14 '16 at 14:12
1 Answers
3
Basically... you can't.
Every Database-Server can provide databases with any name, so you can have Database foo
on server x
and at the same time on server y
with different data.
So without any additional info you can't get the adress of the server.
Edit:
Q: Actually server does not have static IP it generates dynamic IP.
A: You can use a DDNS prvider, to create a hostname, which changes automatically the IP adress depending on your current server IP, but without a 3rd party app it seems difficult.

Maximilian Ast
- 3,369
- 12
- 36
- 47