Ipv4 and hostname not associated windows 11

Ángel Sánchez 0 Reputation points
2023-06-21T12:10:43.1633333+00:00
Pc name and host not associated
Hi. 

I want to connect my ubuntu virtual machine with windows 11 using samba. I use a phone dhcp network to conect my laptop so I need host names to do the configuration and not the ip. Ubuntu gets the dhcp ip and can be assigned to its hostname using dhclient -r and dhclient and voila:

ping angel-pc (ubuntu machine)

 

Haciendo ping a angel-pc.local [192.168.253.248] con 32 bytes de datos: 

Respuesta desde 192.168.253.248: bytes=32 tiempo<1m TTL=64 

Respuesta desde 192.168.253.248: bytes=32 tiempo=3ms TTL=64 

Respuesta desde 192.168.253.248: bytes=32 tiempo=4ms TTL=64 

Respuesta desde 192.168.253.248: bytes=32 tiempo<1m TTL=64

I need something similar on windows, because this is the current status and I dont know what to do:

ping Portatil (my main computer windows 11)

 

Haciendo ping a Portatil [169.254.246.182] con 32 bytes de datos: 

Respuesta desde 169.254.246.182: bytes=32 tiempo<1m TTL=128 

Respuesta desde 169.254.246.182: bytes=32 tiempo<1m TTL=128 

Respuesta desde 169.254.246.182: bytes=32 tiempo<1m TTL=128 

Respuesta desde 169.254.246.182: bytes=32 tiempo<1m TTL=128

Why does it not associate mi ip to the host? Windows 7 does it automatically.

I disabled ipv6 so for me its not a solution activate it, I want to associate my ip from the wifi connection to my host, as all my machines:

Adaptador de LAN inalámbrica Wi-Fi: 

 

   Sufijo DNS específico para la conexión. . : 

   Dirección IPv4. . . . . . . . . . . . . . : 192.168.253.142 

   Máscara de subred . . . . . . . . . . . . : 255.255.255.0 

   Puerta de enlace predeterminada . . . . . : 192.168.253.72

to:

Portatil (windows11 hostname)

Thanks for the help.


Windows for business | Windows Client for IT Pros | Networking | Network connectivity and file sharing
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Limitless Technology 44,766 Reputation points
    2023-06-22T13:29:25.0466667+00:00

    Hi there,

    based upon the information provided.

    Check network configuration: Ensure that your Windows 11 machine is configured to obtain an IP address automatically from the DHCP server. You can do this by going to "Settings" > "Network & Internet" > "Ethernet" or "Wi-Fi" > click on your network connection > "Properties" > "Internet Protocol Version 4 (TCP/IPv4)" > "Properties" and select "Obtain an IP address automatically" and "Obtain DNS server address automatically."

    Flush DNS cache: Open the Command Prompt with administrative privileges and run the following command: ipconfig /flushdns. This will clear the DNS cache on your Windows 11 machine.

    Reset network settings: If the issue persists, you can try resetting the network settings on your Windows 11 machine. Go to "Settings" > "Network & Internet" > "Status" > "Network Reset" and follow the on-screen instructions to reset the network settings.

    And see if it helps,

    Thank you

    --If the reply is helpful, please Upvote and Accept as answer--

    0 comments No comments

  2. Ángel Sánchez 0 Reputation points
    2023-06-23T10:15:21.74+00:00

    I made ipconfig /flushdns, ipconfig /release /renew, network reset and the problem persist.

    I have this network adapters, all in automatic:

    User's image

    User's image

    User's image

    Thanks for the help

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.