Second try... (does not work either), starting to feel stupid by now :P
struct ip_addr ipaddr_local;
struct ip_addr ipmask_local;
struct ip_addr ipgate_local;
IP4_ADDR(&ipaddr_local, 192,168,100,30);
IP4_ADDR(&ipmask_local, 255,255,255,0);
IP4_ADDR(&ipgate_local, 192,168,100,1);
NetServer *net = NetServer::create(ipaddr_local, ipmask_local, ipgate_local);
But to no avail....
The readback still gives a wrong IP of 93.1.0.0
But in nerserver.cpp this shows up:
NetServer::NetServer(struct ip_addr ip, struct ip_addr nm, struct ip_addr gw)
....? am i misinterpreting the ip_addr structure or what ?
<search continues>
::EDIT:: EUREKA... see last post.
Hi,
I've looked around for hours now, and i give up.
What is the Static IP equivalent of this DHCP command:
I tried to look in the .h files, and tried this.
But to no avail....
The readback gives an IP of 109.0.0.0
Anyone? Help? <whimpers>
Theo (nl)