May 10, 2024
Contribute to the Windows forum!
Click here to learn more 💡
May 10, 2024
Windows 7 Top Forum Contributors:
Bill Smithers - LemP ✅
May 10, 2024
Windows 7 Forum Top Contributors:
Bill Smithers - LemP ✅
Windows 7 - Ad-Hoc network / computer to computer connection - has got an invalid IP ADDRESS 169:254***:*** how do i change it back to a working ip ADDRESS??
Report abuse
Thank you.
Reported content has been submitted
169.254 is a valid address range called an APIPA address. Read this article from Microsoft about how APIPA works
This is an automatically generated address when the computer does not have a manually set address and when it cannot locate a DHCP server to get issued an address from.
For an ad-hoc network this is completely correct. Clients do not have a DHCP server to issue addresses so as an alternative they internally generate one. Assuming all devices are in the same state they will create a network where they can communicate with each other. The last two octets are in principle randomly assigned so the chances of two devices having the same address are small (1:65025) because this solution would not be used in a large network.
If you do have a DHCP Server on the network then this is not an ad-hoc network but a client server network. This address appearing indicates the client is not being issued an address from the server which is in most home network cases is the router. You indicate that the iPod gets an address OK but your PC does not so presumably there is a problem with the wired network somewhere.
Report abuse
Thank you.
Reported content has been submitted
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
Report abuse
Thank you.
Reported content has been submitted
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
Report abuse
Thank you.
Reported content has been submitted
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
OK, there is a little more info here which makes more sense.
You have a long LAN cable from your neighbour providing you internet access. This can be no more than 100m long to be within Cat5 spec.
I think you have that attached to your wired LAN port and so that port is issued an address from the neighbours router. So at a command prompt if you type ipconfig /all under the wired connection section you should find something like this:
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . : home
Description . . . . . . . . . . . : Marvell Yukon 88E8056 PCI-E Gigabit Ethernet Controller
Physical Address. . . . . . . . . : 00-24-8C-22-C7-EC
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::74ef:2b4c:c42c:a213%10(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.0.38(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : 04 May 2013 11:13:43
Lease Expires . . . . . . . . . . : 07 May 2013 11:13:43
Default Gateway . . . . . . . . . : 192.168.0.1
DHCP Server . . . . . . . . . . . : 192.168.0.1
DHCPv6 IAID . . . . . . . . . . . : 218113164
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-16-CF-F3-B6-00-24-8C-22-C7-EC
DNS Servers . . . . . . . . . . . : 192.168.0.1
NetBIOS over Tcpip. . . . . . . . : Enabled
This is from my system so some precise details will vary but the important bit is Default Gateway, DHCP Server and DNS Server are all the same. Also note that only the last block of the Subnet mask is zero only the same block of the IPv4 address can change.
So presumably what you want to do is enable ICS for the wired network and effectively make the wireless port of the PC (a laptop?) a hotspot for your iPod/phone/tablet to get internet access.
Then you are correct to define the wireless interface as an ad hoc network but that network does not have a DHCP server on it. Without one the network interfaces on the wireless will issue themselves APIPA addresses as you have found. That should work but with one major caveat. The devices would talk to each other but APIPA is unrouteable so they cannot get to the internet.
So instead they have to have manually assigned addresses. In each network interface you have to set the IP addresses, Subnet mask, default gateway and DNS server (except on the PC [laptop?] these are left blank. If using my example above then on the PC you would set:
IP Address v4 = 192.168.1.100, mask 255.255.255.0
On other clients:
IP Address v4 = 192.168.1.101/2/3/4, mask 255.255.255.0, gateway 192.168.1.100, DNS server 192.168.0.1
This would mean that your internal clients are on the same network but each with their own address, they use the PC to get out of the network (gateway) but use the neighbours router to resolve the DNS requests.
Having said all that this requires that the PC is always available and personally I find the ICS and ad hoc network insecure and unreliable so I would not do this at all.
Get a DSL (also called Cable) router with WiFi. Log into it on the LAN side using the wired port and set up its DHCP server to issue addresses in a different subnet to the ones from next door, so if they use 192.168.0 then set it to 192.168.1 (or get one which uses a different range by default) When you save this change you will lose contact but that does not matter at this stage. Plug the long LAN lead from next door into the DSL port. And that's it!
Computers plugged into the LAN wired ports will connect automatically. WiFi devices will find the router as an available network. Stable, reliable, secure and not dependant on the PC being on. My son has exactly this in his room. He is an Apple fanboi and
the long LAN lead goes to his Airport Extreme (a PowerLAN link actually) and then his Mac Pro, Internet TV, iPad etc. all connect to that.
Report abuse
Thank you.
Reported content has been submitted
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
Question Info
Last updated June 11, 2019 Views 2,285 Applies to: