[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Local ip address on windows
You wrote:
Hi guys,
I am developing a communication program on windowz 95 (fuy).
Does any body knows if there is a local ip adress as a local-loop-back on linux?
(I need to access deom one program to another on the same machine).
Thanks,
Michael
Well, the IP address for local operations on Windows 95, as on Linux, is usually 127.0.0.1. However, if you want to find the actual IP address of the current host (for example, if the program runs on "www.slink.co.il" then 194.90.41.254.) I believe you should do gethostname() and then gethostbyname(), or something else maybe.
I suggest you take a look at the wsock example that comes with MSDN, Visual C and probably the Win32 SDK.
Shlomi Fish