i am accessing my wamp server from WAN through PC's IP address 122.xxx.xxx.xx. but now i want to access my wamp through DOMAIN name.
i only have my domain name and no other credentials for setting. is it possible with domain name?
You need to point your domain name at that ip address. In your settings or admin panel where you setup/purchased your domain name set the ip address to the 122.xxx.xxx.xx you have been using.
This really depends upon your location.
If when you reboot your router you get a new WAN IP address every time, then you cannot use the domain name you have purchased. You would have to use a Dynamic DNS provider like DYNDNS.COM or Amnon's suggestion DNSEXIT.COM or one of the others that provide this service. With that service you will unfortunately have to use one of their sudo domain names, which means you will have to use something like YOURDOMAIN.ONE_OF_THEIR_DOMAINS.ONE_OF_THEIR_TLDS, so it would look like mydomain.dyndns.net they normally have quite a few to choose from, but it wont look like www.yourdomain.com
If you always have the same WAN IP address for your router then you can use you purchased domain name. You will have to contact whoever you purchased it from, they would normally provide a web site where you can login and set the ip address you want to use for the domain name you have purchased. Once that is done and you give the DNS servers a few minutes to a few hours to get updated you will be able to use that domain name.
Related
How to check if user is visiting site from our own local network or common internet.
Suppose, If somebody scans the qr code in our restaurant, it links to something, which is checking, are you connected to the local network or you're opening it from global? (no idea how)
Local - redirecting to the local domain (no idea how i can do this also, eg. restaurant.menu)
Global - redirecting to the global domain (eg. menu.com)
You can check the IP of the customer and compare it with IP range of your network. If the customer IP falls in your range redirect the user to local site otherwise to your global site.
You can use $_SERVER['REMOTE_ADDR']; to get IP of user visiting the site from the QR code.
You can setup a dns record for your local IP (external IP). The IPs mentioned in the comment 10.100.109.10-256 are private IPs and not publicly accessible. These wont work, search on google with what is my ip and I am sure you will get many options.
Once done you can create a script which will get user ip address ($_SERVER['REMOTE_ADDR'];) and do a gethostbyaddr() lookup to get the hostname associated with that IP. If the hostname matches the one you have set, your visitor is from a local connection.
For the redirection to work, if your website is hosted on server that is not in the same network as your router then you need to have a public facing domain name (ie. restaurant.menu should be reachable publicly)
A second approach could be to redirect the traffic at the router level. If your router allows you can setup a redirection in the router itself. If it does not you will need to setup a dns server. In this dns server you will specify the desired (local) IP address for the domain. You router needs to have a backup dns to keep resolving other domains.
These are hacks but if implemented correctly they will provide very predictable results.
I would like to forward:
www.example.com/intake
to:
xx.xx.xx.xx/forms/intake.php
Do I do this by using an A record?
When I try to do this on GoDaddy I receive an error. It wants just the IP address without the specified path.
To do this with godaddy, follow this guide: https://www.godaddy.com/help/redirect-urls-with-your-hosting-account-5120
If you want to hide the IP address, you are either going to have to set the A record of the domain to their IP and expect that server to have hosting for your domain name(not what you want), or you are going to have them listen for requests on a subdomain.
Other then that, if you are customer with godaddy, why not ask godaddy for support?
There's multiple ways to do what you want but using an A record has nothing to with url redirection, just dns pointers.
You can only do this if you have hosting attached to your domain name.
I have a site using PHP and MySQL. I have a domain name reserved by a domain name provider. I do not want to use the storage proposed by that provider to store my files, because it's really too expensive.
Let's say the domain name is : www.domainname.com
So... If I choose another provider (let's imagine it's free.fr) to store my site's files, what may I do, or what may I look for, to be able to have in my url bar :
http://www.domainname.com/onefolder/onegreatfile.php
instead of :
http://imhere.free.fr/innerfreefrfolder/onefolder/onegreatfile.php
If I activate the transparent redirection on my domain name, the url keeps being :
http://www.domainname.com
If I force the url bar to go to http://www.domainname.com/onefolder/onegreatfile.php
it returns a 404 not found error (The requested URL /onefolder/onegreatfile.php was not found on this server.)
The following is an oversimplification but it should be enough to get you where you need to go:
You'll want to sign up with a web host that allows you to use your domain name with their server. They will tell you what to set your name servers to so that any requests for www.domainname.com will result in the ip address of the server your files are stored on. Setting the name servers for your domain is usually done via a service provided by your registrar.
The transparent redirection you're referring to (some hosting sites call it Forwarding with Masking) is really just your hosted files displaying within an iframe on your owned domain name.
What you really need to look into is setting the DNS servers/Nameservers for your domain name to point to your hosted website/IP address.
I'm hosting my own website on my personal server running Ubuntu server. My public IP address is showing up in the status bar each time someone visits my sites or hovers over one of the links on the pages (i.e. when going to the home page it says waiting for myipaddress/index.php). I have purchased a domain name with godaddy. While I was able to find the option of mask the url in the address bar in the admin page, I was able to find no such option for the status page. Initially, I tried to embed JavaScript code into the php files but I later learnt from various posts (link) that we cannot control what is displayed in the status bar .
All I want to do is to display my domain name instead of my IP address each time the page loads and each time the user hover's over a link. Any ideas of how I should go about this?
You should just have your domain name point to your IP address and setup the site on your server to handle that domain. Then all requests will go to that domain name instead of directly to your IP address.
Note: it's very easy to find the IP address for any web server (based on a domain name) so you can't really hide it, but you can set it up so that it behaves just like any regular site that uses a domain name instead of an IP address.
Have you done anything to connect the webserver and the domain name? You're going to need name servers, often your domain provider will have something you can use, or you can run your own. The name server is like a phone book for websites. It says mydomain.com can be found at IP address 123.whatever. Until you have an entry in a name server 'phone book' you will not be able to access it through that domain name.
You'll also need to setup something on the webserver so it will know what to serve when it gets a request pointed to that domain, if you're using apache, likely it will be a virtual host entry in the appropriate config file.
Earlier i have purchased a web space of PHP and a domain name .
Now i have purchased another web sapce of ASP.net .I want to bind my existing domain name with my new Web space.
So through some google search i came to know to i have to make Entry of the new server's Ip in the DNS zone. In my previous PHP's Cpanel i m having the following window.
Should i make entry from here , and what should I enter at these textboxes.
Please help.
The best option is to change the nameservers at your domain registrar to your new host's nameservers which should be provided in their welcome email.