Cody Robertson Staff asked 3 years ago

I am having trouble logging in to my host server with puTTy and Im wondering if its because my IP keeps changing. I saw in a post on here a question similar to mine and the reply was a link to dyn.com. Is the service dyn.com provides a logical solution, or is asking my ISP to provide a static IP better? Or what?

Below is a copy of the post I saw here:

Sometimes the error response from puTTy is:server unexpectedly closed network connection, and other is: disconnected-no supported authentication methods avail (server sent public_key).
software called Putty to bypass Websense or the firewall.
However, by using putty, you need to put the IP address of your home pc. If my home pc's IP address constantly changes, then the connection wont be established at all (I havent tried, but i think there wont be any connection because i observed the hope IP always changes).
Do you know any way to work around this problem?

Thank You!

4 Answers
Shnerdly Staff answered 3 years ago

Thanks for your question Leafed.

"I am having trouble logging in to my host server with puTTy and Im wondering if its because my IP keeps changing."

Are you referring to a hosting company that you are trying to connect to or your home server from a remote location?

Also, what protocol are you using, SSH perhaps?

If your using PuTTY/SSH, you first need to setup the server to accept the connection. Depending on the server and who operates it, it may require a static IP but doesn't have to. It may also require specific credentials from your end.

If your trying to log into a server at your home with PuTTY, a static IP would help but is not required. You simply need to know what it is when you connect and hope it doesn't change while your on. You would also have to setup a port forward in your router for the protocol you are using. SSH is port 22 by default but can be changed to anything you want. The server will also have to be setup to accept the remote connection.

I run a webserver at my home and have it setup to accept SSH but on a different port. I also have my hosts file on the server setup to only accept connections from specific IP Addresses. If I want to access it from somewhere that is not listed in the hosts file, I have to VPN to a specific location to get into my server.

milyet answered 2 weeks ago

You can check the IP Address of the website by following these steps carefully, but remember that the process varies from device to device. If you need to do it via Mac then open Spotlight, tap the magnifying glass-shaped icon and Open Network Utility. In case you need to know more then go for https://appuals.com/solarwinds-ip-address-tracker-free-ip-address-tracking-software/. Now double-click the option of Network Utility. By doing that you will be shifted to the Network Utility window, so press Traceroute to start. It's a tab at the topmost of the Network Utility window option. Just add a webpage's address and write in the address of the webpage for which you need to find the IP address. There is no need to give the "https://" or "www." Part of the webpage's address, press Trace and write down the website's IP address. Subsequent to the "traceroute to [website]" line of text, you'll be able to see an IP address in parentheses; this would be your webpage's IP address.

Ken Adam answered 1 week ago

waiting for reply

richard cao answered 7 days ago

all clear! what kind of VPN do you use?

Know the answer? Login or sign up for an account to answer this question.
Sign Up