Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 190
  • Last Modified:

can no longer remote desktop to PC #2 after setting static ip address on it.

I set up a static IP address (via IPV4) on PC # 2 at home, to address an oracle issue on that machine.

That seemed to go ok, but now I can now longer RDC into PC # 2 from PC # 1, which previously I was able to do when it had a dymanic IP address. I get the standard "Remote desktop can't connect to the remote computer for one of these reasons [etc. etc.] I've re-booted both machines. PC # 1 can read the files on PC # 2 via the network, and both are on the same Homegroup . . .

I set the static ip address as 192.168.1.55, to insure I'd never have a collision with other devices.

PC # 2 definitely allows RDC.
0
Gadsden Consulting
Asked:
Gadsden Consulting
  • 15
  • 12
  • 3
2 Solutions
 
RizzleCommented:
Can you not connect to PC2 via IP or hostname?

Can you try restarting the Windows Firewall Service on PC2 aswell?
0
 
RizzleCommented:
Also run ipconfig /flushdns on PC1 and then on PC2 run ipconfig /flushdns and ipconfig /registerdns
0
 
Gadsden ConsultingIT SpecialistAuthor Commented:
Roshan

-- I flushed DNS on PC # 1, then tried it again, didn't work.
-- then I tried to connect via IP, and that worked ! (but why is that ? I haven't changed the PC name).

but thanks ! I'm in :-)
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
RizzleCommented:
Yeah on PC 2 run ipconfig /registerdns and all should be well.
0
 
RizzleCommented:
It will be due to the old ip being associated with the hostname of PC 2 at the moment.
0
 
Gadsden ConsultingIT SpecialistAuthor Commented:
Roshan,

ok, sounds good and makes sense. I'm working on my Oracle issue at the moment, but will flush / register on PC # 2 shortly, and close out.

Thanks !
0
 
RizzleCommented:
No problem :)
0
 
Gadsden ConsultingIT SpecialistAuthor Commented:
ipconfig /registerdns resulted in "The requested operation requires elevation". This is odd since it's on C:\ drive I assume and everything should be good there. I do have an external (internal actually) E:\ drive that used to be the main drive, and there are some permission issues on E:\drive. But C:\ should be fine, I installed Windows 7 clean on this.
0
 
RizzleCommented:
Oh sorry,

Launch Command Prompt as admin by typing in cmd in the run bar and then right click it and then click "Run as administrator"

Then type in IPConfig /RegisterDNS
0
 
Gadsden ConsultingIT SpecialistAuthor Commented:
ok, did that, it says "Registration of the DNS resource has been initiated ... Any errors will be reported in 15 minutes."

-- so I'll give it 15 minutes just to be sure. . . .

Thx.
0
 
RizzleCommented:
Give the PC2 a restart and PC1, then on PC1 do another IPConfig /flushdns and then retry the connection.
0
 
Gadsden ConsultingIT SpecialistAuthor Commented:
still can't connect by PC name . . . but IP address works. I'll re-boot and let you know.
0
 
RizzleCommented:
So on PC2 you've ran command prompt as admin and then you ran ipconfig /registerdns

On PC1 you've ran command prompt as admin and then you ran ipconfig /flushdns

Give PC2 a reboot and see if that works.
0
 
Gadsden ConsultingIT SpecialistAuthor Commented:
re-booted and still can't connect by PC-name, but IP works.

no big deal, but would be nice to know.
0
 
RizzleCommented:
From PC1 can you ping the hostname of PC2?
0
 
Gadsden ConsultingIT SpecialistAuthor Commented:
will try tonight, thanks for the follow-up.
0
 
Gadsden ConsultingIT SpecialistAuthor Commented:
I can successfully ping Stephen-PC but can't connect . . .
Ping resultsStephen-PC pings back with a different IP- what is that ? When I enter "what is my IP" on Stephen-PC, it says 71.121.146.132
0
 
RizzleCommented:
Can you post a screenshot of the static ip information you set on PC2 as i think the DNS settings maybe incorrecty set. Also does PC1 have a static IP? If ao post a screenshot for me.

That IP is the IP provided by your ISP when you get your broadband line so its your WAN IP.
0
 
Pramod UbheCommented:
open hosts file at C:\Windows\System32\drivers\etc with the help of notepad and please add below entry -

192.168.1.55   Stephen-PC

restart both PCs and it should work fine. you might not be able to edit that file, try to opne notepad with run as admin or in safe mode.
0
 
Pramod UbheCommented:
sorry forgot to mention that it needs to be done on PC1
0
 
Gadsden ConsultingIT SpecialistAuthor Commented:
thanks to both, I will try tonight, but it might be tomorrow night before I get to it.
0
 
Gadsden ConsultingIT SpecialistAuthor Commented:
Pramod - connected as Stephen-PC, didn't have to re-boot . . .

looks like I'm good !

but curious how it found Stephen-PC before I set the static IP

Roshan,

here's the static IP info
static IP info
0
 
RizzleCommented:
I believe if you were to remove that entry in the hosts file the issue would be resolved,  but bear in mind its not best practice to lrave entries in the local host file.
0
 
Gadsden ConsultingIT SpecialistAuthor Commented:
Roshan, I'll remove the entry tonight and see what happens.
0
 
RizzleCommented:
Aslong as the DNS Server on both machines is the Default Gateway 192.168.1.1 this should be ok!
0
 
Gadsden ConsultingIT SpecialistAuthor Commented:
ok, thx !
0
 
Gadsden ConsultingIT SpecialistAuthor Commented:
after removing the entry from hosts, it didn't connect. Re-booting now . . .

Here's the setup on both
IPconfig both machines
0
 
Gadsden ConsultingIT SpecialistAuthor Commented:
re-booted both machines after commenting out PC # 1 in hosts, didn't work.

Added back in to hosts - worked !

I'm good, but like I said, I'm curious how it was  resolved prior to the static IP.

Thx.
0
 
Pramod UbheCommented:
one thing to note about host file is you forcefully tell a computer to use a specific IP against a name so whenever you do changes to the static IP, you will also need to update hosts file.
For previous case, if you really want to dig, I can help just tell me how dynamic IP was obtained I mean was there any dhcp configured? what is 192.168.1.1 because all the queries are routed to default gateway, how is your dns setup? as per Ipconfig output I can see DNS suffix as home so your computer always try to resolve the name as Stephen-PC.home
are these computers in workgroup or domain?
lot of things to check, it can be within above things or might be something else as well.
0
 
Gadsden ConsultingIT SpecialistAuthor Commented:
Pramod,

thanks for the followup. I'll post another question if it becomes an issue. The home setup is pretty stable so I don't expect any changes in the near future.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 15
  • 12
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now