Computing.Net > Forums > Programming > find IP from other PC over Internet

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

find IP from other PC over Internet

Reply to Message Icon

Name: Pavlos Tr
Date: October 11, 2002 at 16:51:52 Pacific
OS: win32
CPU/Ram: amd k6-2 450
Comment:

hallo programmers

i have a problem with my client/server program.
I can connect the client to the server over the internet only if I know the IP address of the server ,
and because my ISP gives me a > address every time I connect to the internet I want to ask if there is an easy way so that the client can get the servers IP automatically

I'm programming in C with mingw32 (gcc) for win32.
thanks

Paul,
Thessaliniki,
GR,
EU



Sponsored Link
Ads by Google

Response Number 1
Name: Jim
Date: October 11, 2002 at 19:30:36 Pacific
Reply:

I can think of two possibilities.

1) Usually there will be a range of possible IP addresses that your internet provider can assign to you. You could try them all until you find the one that will respond. Your provider may not like you pinging all the other customers, and they may think you're trying to hack them or something, but it would work.

2) Use a third party server that DOES have a static IP address. For example, when you log in, have your server FTP into your internet site and deposit a file with his IP address in it. Then your client can FTP in and pick up the IP address.


0

Response Number 2
Name: Cerj (by cerj)
Date: October 14, 2002 at 04:10:37 Pacific
Reply:

You can also use a dynamic dns server like the one at www.dyndns.org



0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: find IP from other PC over Internet

Connect to Other PC Using Batch www.computing.net/answers/programming/connect-to-other-pc-using-batch/17801.html

How to get enviroment variable from remote PC www.computing.net/answers/programming/how-to-get-enviroment-variable-from-remote-pc/19388.html

Batch file to find ip and host name, and save www.computing.net/answers/programming/batch-file-to-find-ip-and-host-name-and-save/19455.html