DNS.GetHostEntry() failed

The whole answer can be found below.

Please note: The Photon forum is closed permanently. After many dedicated years of service we have made the decision to retire our forum and switch to read-only: we've saved the best to last! And we offer you support through these channels:

Try Our
Documentation

Please check if you can find an answer in our extensive documentation on PUN.

Join Us
on Discord

Meet and talk to our staff and the entire Photon-Community via Discord.

Read More on
Stack Overflow

Find more information on Stack Overflow (for Circle members only).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

DNS.GetHostEntry() failed

Inc1992
2020-12-24 10:14:34

I have a problem with the connection with the eu server.

DNS.GetHostEntry() failed for: 92.38.154.80. Exception: System.Net.Sockets.SocketException (0x80004005): Could not resolve host '92.38.154.80'
at System.Net.Dns.Error_11001 (System.String hostName) [0x00015] in :0
at System.Net.Dns.GetHostByAddressFromString (System.String address, System.Boolean parse) [0x00034] in :0
at System.Net.Dns.GetHostEntry (System.Net.IPAddress address) [0x00014] in :0
at System.Net.Dns.GetHostEntry (System.String hostNameOrAddress) [0x0004b] in :0
at ExitGames.Client.Photon.IPhotonSocket.GetIpAddresses (System.String hostname) [0x00002] in C:\Dev\photon-sdk-dotnet\PhotonDotnet\IPhotonSocket.cs:260
UnityEngine.Debug:LogError(Object)
Photon.Realtime.LoadBalancingClient:DebugReturn(DebugLevel, String) (at Assets/Photon/PhotonRealtime/Code/LoadBalancingClient.cs:2081)
ExitGames.Client.Photon.<>c__DisplayClass104_0:b__0() (at C:/Dev/photon-sdk-dotnet/PhotonDotnet/PeerBase.cs:899)
ExitGames.Client.Photon.EnetPeer:DispatchIncomingCommands() (at C:/Dev/photon-sdk-dotnet/PhotonDotnet/EnetPeer.cs:431)
ExitGames.Client.Photon.PhotonPeer:DispatchIncomingCommands() (at C:/Dev/photon-sdk-dotnet/PhotonDotnet/PhotonPeer.cs:1596)
Photon.Pun.PhotonHandler:Dispatch() (at Assets/Photon/PhotonUnityNetworking/Code/PhotonHandler.cs:205)
Photon.Pun.PhotonHandler:FixedUpdate() (at Assets/Photon/PhotonUnityNetworking/Code/PhotonHandler.cs:139)

Using PUN 2 (v. 2.15, lib 4.1.2.18).
Unity version 2019.4.16f1

I have a specific application and trying to connect to the server from multiple devices from one router. This trouble happens when I'm trying to connect the 3rd device.

Comments

Tobias
2021-02-23 16:03:05

This is really odd. This means you could connect 2x already and the third client fails?? Crazy.

I recently changed the DNS lookup code and IP handling. Assuming the IP is what is being looked up, the new version should not do this anymore (and just use the IP as intended).
So, you could update to v2.28 (out today) and have a go. Does it change anything?

Which sort of clients do you run? Windows IL2CPP? Or Mono?

Back to top