Mirage Engine
IP - Simple Question.... - Printable Version

+- Mirage Engine (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: Resources (https://mirage-engine.uk/forums/forumdisplay.php?fid=49)
+---- Thread: IP - Simple Question.... (/showthread.php?tid=164)



IP - Simple Question.... - jourdan - 04-07-2006

Hi! i want to ask little help

how to read ip from whatismyip.org to write in to textbox?
i just need to know how to read ip from whatismyip Big Grin

thx,

Jourdan


- Matt2 - 04-07-2006

The client has a Winsock Control.

Make a Form, call it frmIP

Put a label on it. Call it lblIP

Code:
Private Sub Form_Load()
lblIP.Caption = frmMirage.Socket.LocalIP
End Sub

Something to that extent. Nice, quick, easy.


- Tosuxo - 04-07-2006

if you're behind a router you're screwed basically, and you'll have to do a totally different code... as it'll give you the LAN address..


- Misunderstood - 04-07-2006

same code....you just need to port forward.


- grimsk8ter11 - 04-07-2006

GSD wrtoe something a while back to get the IP directly from whatsmyip.org, ill see if i can find it.


- Krloz - 05-07-2006

Theres a simpler way register at http://www.no-ip.org :roll: no need to update client


- Matt - 05-07-2006

That isn't simpler, it has nothing to do with the request.