recently ip address of the computer where the sourcecodes are changed, so I need to change the ip address of hostname in wincvs. So I couldn't figure out. Any help is greatly appreciated.
I was not able to change to ip address. But instead I was able to checkout to a new directory by checking Check out to directory in checkout setting and I have also checked CVSROOT, there I specify the ip address. Now everything is fine.
Thanks
Related
Hi guys i'm stuck with my web api. i hosted my api locally on my computer. if i request using localhost e.g http://localhost:85/api/user/getallusers it works fine.
see this image
but if i use the my local ip e.g. http://192.168.43.86:85/api/user/getallusers it returns "ERR_CONNECTION_REFUSED".
see this image using locally assigned ip
see my ipconfig result
any idea? thank you...
From this link,you can see rsplak says When you access localhost, your /etc/hosts file will tell your computer not to look any further and redirects you to your own computer. When you access the local IP adress, your computer will ask the router to fetch the data, and your router will then point back to your computer.
So it means the mapping of localhost maybe wrong in localhost(it maybe 127.0.0.1 by default).
You can change it in C:\WINDOWS\system32\drivers\etc\hosts.Change the IP to your 192.168.43.86.
Background
Last night I was having some trouble with my server when I added a new IP address. I tried but could not get it routed in my WHM. In the beginning I tried adding it from the,
Show or Delete Current IP Address menu of WHM.
I created a new Cpanel Account and chose the IP as the dedicated IP for that account. When I could not get it routed I took three steps,
1. I released it from the account
2. Released the IP from the server (AWS)
3. Deleted the account
Then I tried to delete it from the WHM menu mentioned above. When I try to delete it I get this same message over and over again,
Since then I have routed a new IP and everything started working fine. But I cannot remove the old IP still. Now to top that off I have received this high priority message in my email from WHM
Question
I am wondering if these two things are related and I can not come up with a way to troubleshoot this.
What are the proper steps I can take to safely remove the IP address that shows inside of the Show or Delete Menu
When making configuration changes to the server at some point I changed the server's main IP address for a brief time. This made WHM think the main IP was the one that I was unable to delete 10.0.1.175. In order to resolve this I followed these steps,
1. I ran the /scripts/mainipcheck script to make sure that the main network interface was mapped to the proper IP.
2. Once that resolved the issue I ran the /scripts/build_cpnat scrip just to make sure that all private IP addresses were mapped to the proper external IP addresses.
At this point I was able to remove the IP address that was not part of my network and everything continued to work as normal.
In our dedicated server even we run "/usr/local/cpanel/bin/set_hostname" from SSH as ROOT all notifications from the server has wrong hostname URL. The problem remains only in notification mails and sometimes HTTPS URLs (but this one is cause of local DNS records i guess).
We already did:
Changed hostname from WHM
Changed RDNS records
Fixed etc/hosts
Run /usr/local/cpanel/bin/set_hostname [hostname]
Fixed WHM api1
Reboot :)
Read StackOverflow
So can anyone offer a solution for this issue?
Editing wrong hostname values in one of the files Apache uses to build it's main configuration file "/var/cpanel/conf/apache/main" have solved the issue.
This solution had come from cPanel Customer Support. Hope it helps.
in my case I edit "/etc/hosts" and remove old host name attached to server ip.
I've setup a cPanel server on CentOS. Followed through with all the basic recommended installation options.
I've created an account - mydomain.com.au - and have been able to access the cpanel for that account through WHM.
My server's public IP is 1.2.3.4, I've created an A record in my domain register for www.mydomain.com.au -> 1.2.3.4. This does resolve correctly when checked through ping and mxtoolbox.
However, when I try to access the site www.mydomain.com.au, I get taken to "This web page is not available".
Am I missing something? I haven't setup the cPanel server with DNS hosting/private nameserver as I'm trying to get something basic going first, just a simple hosting account.
I think you have not updated the correct "A" record of your site and due to that you are getting this issues, Please update it correctly and check your domain DNS report at : http://intodns.com/
Check that account's VirtualHost in httpd.conf, maybe it has a wrong IP.
Point the IP address correctly to resolve the issue, if you have DNS clustering enabled and you have WHM access then you can edit it accordingly in WHM or you can contact your support that manages the nameserver's for the domain and ask them to point it.
I'm using the SystemConfiguration framework to get the current IP from the dynamic store in my app.
Is it possible to get the hostname from the dynamic store as well? The current IP could be local, so I'm trying to get the returned value to be something like "mymac.local" or "2adg3.dsl.lgtpmi.sbcglobal.net", depending on how I'm connected to the net.
I tried SCDynamicStoreCopyLocalHostName(NULL), but it only returns the computer name itself (and not with the .local part), even if the IP resolves to a hostname that's accessible to everyone on the internet.
You could try
[[NSHost currentHost] names]
I just tried it and it returns all local hostnames of my machine.
Update:
This is a good blog post that fixes some NSHost issues:
http://cocoawithlove.com/2009/11/drop-in-fix-for-problems-with-nshost.html