Skip to content

Instantly share code, notes, and snippets.

@batok
Created July 13, 2009 15:48
Show Gist options
  • Save batok/146204 to your computer and use it in GitHub Desktop.
Save batok/146204 to your computer and use it in GitHub Desktop.
import clr,socket
clr.AddReferenceByPartialName("System.Windows.Forms")
from System.Windows.Forms import Application, MessageBox
MessageBox.Show(socket.gethostbyname(socket.gethostname()))
Application.Run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment