 |
|
 |
I have to set staic IP address for a system i.e. the user will input the address.I have to do this using win32 API.can anyone pls help regarding this
|
|
|
|
 |
|
 |
Hi,
This is very good but:
When I use this app to List all IPs it only gives me the IPs of
Machines that are configured by Network Setup Wizard!
Why?
Thanks.
|
|
|
|
 |
|
 |
I'd suggest you check out the Win32 IPHelper functions which are now the supported ways of enumerating IP details.
|
|
|
|
 |
|
 |
im trying to make a program that has this output, i was just wondering if anyone would be so kind enough to give me a hand with it. thank you.
>Enter an IP address
>126.23.123.14
>That is a Class A address
>The Network portion of the address is 126
>The local portion of the address is 23.123.14
>
>Enter an IP address
>127.0.0.1
>That is the local loopback address
>
>Enter an IP address
> . . .
|
|
|
|
 |
|
 |
Hi there,
Can anyone please provide some insight to the below problem?
I am calling:
const hostent* HostInfo =
::gethostbyaddr((const char*)(&binaryIp), sizeof(binaryIp), AF_INET);
binary ip is the correct local ip of a machine on our network. Instead of returning the machine's name, HostInfo-
>h_name takes on the "xxx.com" name of our company! Any ideas why this is happening?
Thanks!
[b]yte your digital photos with [ae]phid [p]hotokeeper - www.aephid.com.
|
|
|
|
 |
|
 |
Pls, anyone help me.I want to use Visual Basic 6.0.I want to know that I can either scan or not by VB.Pls,help me!
Thanks so much.
Hlaing
|
|
|
|
 |
|
 |
well, I need to know my IP when i'm connected to the net using a RTC, cable or ADSL modem ....
The gethostname/gethostbyname combination only shows 127.0.0.1/192.168.0.1 !!!!
please, help !!!
If you want to know why, pls visit http://sourceforge.net/projects/refreship/
thanx.
|
|
|
|
 |
|
 |
How can i get ip address of system using C++
|
|
|
|
 |
|
 |
// For Win32. link with wsock32.lib :
WSAData wsa1;
if (WSAStartup(MAKEWORD(1, 1), &wsa1) != 0)
return -1;
char shostname[255];
int e;
e=gethostname(shostname, sizeof(shostname));
if (e != 0) {
e= WSAGetLastError ();
return -1;
}
struct hostent *phost = gethostbyname(shostname);
if (phost == 0)
return -1;
for (int i = 0; phost->h_addr_list[i] != 0; ++i) {
struct in_addr addr;
memcpy(&addr, phost->h_addr_list[i], sizeof(struct in_addr));
//ip address is inet_ntoa(addr)
char oip[50];
strcpy(oip,inet_ntoa(addr));
//m_server.AppendText(oip);
}
Regards, BR
|
|
|
|
 |
|
 |
great piece of code.
tnx
Carl
|
|
|
|
 |
|
 |
Tx a lot..Good stuff, simple and effective!
|
|
|
|
 |
|
 |
How can i get ip address of system using C++
|
|
|
|
 |
|
 |
How do I enum all IPs or machine name in a domain?
|
|
|
|
 |
|
 |
Is there any way to get the application handle who had
bound to specific IP port?
I think it should exist but cannot find it.
thanks in advance
|
|
|
|
 |
|
 |
Hi,
i want to get IP addresses of all pcs connected by NETWARE and running windows95 ... so tell me pls which class i use .
i use WNET classes but it cant work /...
tell me in brief...
pl
|
|
|
|
 |
|
 |
Can anyone help me with retrieving the name (protoent structure?)of a protocol ??
ThanX,
Orry
|
|
|
|
 |
|
 |
Anyone know how to determine the netmask or broadcast IP for these IP addresses returned?
Also, if Winsock2 is available, it's preferable to use WSAIoctl(SIO_ADDRESS_LIST_QUERY), since it doesn't force a dial-out on modem users.
Ryan Schneider
NeoWorx Inc.
|
|
|
|
 |