You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tried looking in the code and on the net, can't figure out how to print or assign to a variable the IP Address resolved when using a DNS name, either is SwiftSocket or native SwiftUI function.
What I do is something like: let client = TCPClient(address: www.google.com, port: 443). What I need then is to get the IP Address resolved for www.google.com from the device it's being run and for the life of me, cannot find anything to do that.
All I find is how to get device's IP Address or the WiFi IP Address, but not the remote host I'm connecting to.
I'm using XCode 13 and iOS 15.2.
Thank you :)
The text was updated successfully, but these errors were encountered:
Greetings,
I've tried looking in the code and on the net, can't figure out how to print or assign to a variable the IP Address resolved when using a DNS name, either is SwiftSocket or native SwiftUI function.
What I do is something like: let client = TCPClient(address: www.google.com, port: 443). What I need then is to get the IP Address resolved for www.google.com from the device it's being run and for the life of me, cannot find anything to do that.
All I find is how to get device's IP Address or the WiFi IP Address, but not the remote host I'm connecting to.
I'm using XCode 13 and iOS 15.2.
Thank you :)
The text was updated successfully, but these errors were encountered: