To point domain to IP address with port number (ubuntu) - networking

I have my domain on namecheap and My ubuntu server on upcloud. My react app is installed on ubuntu server. It's ip is xx.xx.xx.xx:3000 I tried pointing it through namecheap but when I go to the url it shows the content from xx.xx.xx.xx (not from xx.xx.xx.xx:3000) How to solve this issue?

Related

DigitalOcean Droplet is not working on port 80 and other

Created a droplet on digitalocean but when I searched that IP address then error came that domain.com refused to connect.
I go to droplet's networking section and also turned ON the firewall and also allowed http::80, https, but still the error is there.
What mistake have I made?

Cannot access wordpress hosted on localhost from my phone

What I have done:
Created an inbound rule in my firewall on port 80 for requests from local network
Modified Apache's httpd.conf and httpd-vhost.conf to allow requests from local network
Changed the Wordpress Address (URL) and Site Address (URL) from localhost to my machine's LAN IP
Connect my phone to the wifi of the same router as my computer
What I can access from my phone:
My WAMP server homepage
The sample directory I created in my server's root directory
My problem:
Whenever I try to access the wordpress directory in my server's root directory from my phone the URL gets changed from my machine's IP address to 'localhost' and I am given the error message that the site cannot be reached. When I open my Wordpress site from my computer it is showing my IP without changing it to localhost. Any advice will be greatly appreciated.
It’s because your pc knows the domain name for the IP address. You can check hosts file under C:\windows\System32\Drivers\etc\hosts
Your phone also should know where to ask that domain name. And I advice you to set up a domain in your local. That could solve the problem

How do I change dokku port settings to a subdomain?

I signed up for a VPS server and installed dokku on my Ubuntu server.
I set up dokku with an IP address and a port, but I recently got a domain name, and I want to run dokku as a subdomain.
Is it possible to change from port to subdomain in the settings?
Or is there no other way but to uninstall dokku?
This command should automatically change your app to run on port 80 under new domain:
dokku domains:add your-app-name yourdomain.com www.yourdomain.com
Obviously you will need to point your domain's DNS to your VPS IP address. Check out the Dokku docs on their website for how to add SSL / port 443 to your domain.

how to call a website from cmd using a non registered domain name?

Usually When you ping a website (e.g Google.com) it replies with a specific IP
My question is: Is there anyway where you can call a website and replies with an IP you have set manually like 1.2.3.4
meaning if I ping google.com from my pc it will reply with 1.2.3.4
You can do this by adding the domain and IP to your host file. What OS are you running?
On Windows Server 2012 you will find the host file on %systemroot%\system32\drivers\etc
Add your domain and IP like this
64.49.219.194 www.domain.com
Try ping again.

WAMP - localhost can share to someone

I'm not really sure if this is possible, I have a WordPress theme installed and customized using localhost + wamp. Can my colleague view my site w/o uploading it to the server? I mean, can i share a IP address so that he can view it too?
You are looking at port forwarding. You will need to setup a port forwarding rule for Port 80 to forward to the localhost and port that is running your app locally. This way when your friend enters your ipaddress the request will be forwarded to your localhost and he will be able to view the page. Here is an article that discuss Port Forwarding.

Resources