def get_ip_address():
try:
# Get the current computer's hostname
computer_name = socket.gethostname()
# Get the computer's IP address using the hostname
ip_address = socket.gethostbyname(computer_name)
print("Current IP address:", ip_address)
except socket.error as e:
print("Error obtaining IP address:", e)
# Call the function to get and print the IP address
get_ip_address()
Достижения
Игра
#
Открытые достижения
Закрытые достижения
Лучшие из текущих
#
Очки
%
Следующие самые легкие
#
Очки
%
Нет доступных достижений
Профиль последний раз обновлен: 28 сентября 2024 г. в 09:35 .
Следующее автоматическое обновление: 19 октября 2026 г. в 05:59 .