Jump to content

how to find my ip adress and the ip from a webpage ?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
5 replies to this topic

#1
kresh7

kresh7

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 661 posts
could someone give me the source how to make that i want to make a porgram that show your ip adress and if you want to know the ip of a website so pls help

#2
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
You can use the winsock control to get your IP address, but I don't know if you can use it to get a website's Ip.

#3
kresh7

kresh7

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 661 posts
ok could you tell me how to find my static ip
i find my local ip but i need the computers ip adress

#4
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
Well for me it works like this:
Insert a Winsock control and use this code:

Winsock1.LocalIP


#5
kresh7

kresh7

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 661 posts
thx but i know this one i dont need my local ip adress i need my real or static ip adress so how can i use winsock to find that ip ?

#6
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
Well when I use that code it does find me real IP.. but as you are on a shared connection (as far as I know) it is displaying the IP the router gave you.. right? Well I don't know if that is possible to get, except going on WhatIsMyIP.com