Article View: borland.public.cppbuilder.internet.socket
Article #1797Re: How to check my IP
From: Marcin Golas
Date: Sun, 29 Oct 2006 11:09
Date: Sun, 29 Oct 2006 11:09
30 lines
2251 bytes
2251 bytes
Thank you very much Hans, your solution is very good, but I use Indy component: IdIPWatch. Its very simple. This component determines the online status and IP addresses for a computer. I know that, when computer is behind router IdIPWatch always returns C-class IP address (not global IP), but in my case I will always use global IP (DSL connection without router). Uzytkownik "Hans Galema" <notused@notused.nl> napisal w wiadomosci news:4543c1e8@newsgroups.borland.com... > Marcin_g wrote: > >> I write simple server (ServerSocket component in BCB6.0) application and >> I would like to check my IP address and/or internet connection >> accesibility. How to make this? > > On the server computer start a browser and go to > http://whatismyip.com or http://checkip.dyndns.org > This will tell you your internet-ip. > Start your server listening on some port. > > Now start a client on a machine somewhere on the internet > and let it connect to your internet-ip and the port your server > is listening on. > > If there is a connection you are ready. > > Otherwise - if you have a router- you first have to adjust your > router in such a way that it forwards request on > that specific port to your servercomputer on its intern-ip (or lan-ip). > > Hans.
Technical Details
Message-ID:
<45448c08@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4543afc2$1@newsgroups.borland.com> <4543c1e8@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,5680ee52ab0838a6 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Marcin Golas" <golasm@poczta.fm> Newsgroups: borland.public.cppbuilder.internet.socket References: <4543afc2$1@newsgroups.borland.com> <4543c1e8@newsgroups.borland.com> Subject: Re: How to check my IP Date: Sun, 29 Oct 2006 12:09:59 +0100 Lines: 32 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 83.20.51.145 Message-ID: <45448c08@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1162120200 83.20.51.145 (29 Oct 2006 03:10:00 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail