P
Peter
Hi All
Here is the dump of "ipconfig" in windows
Windows IP Configuration
Ethernet adapter Local Area Connection 2:
Connection-specific DNS Suffix . : local.lan
IP Address. . . . . . . . . . . . : 192.168.2.2
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.2.1
Ethernet adapter Local Area Connection:
Media State . . . . . . . . . . . : Media disconnected
PPP adapter pccw:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 218.103.239.113
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . : 218.103.239.113
This System.out.println(InetAddress.getLocalHost().getHostAddress());
give me 192.168.2.2, but i want it give me the ip of PPP adapter. How
to?
thanks
from Peter ([email protected])
Here is the dump of "ipconfig" in windows
Windows IP Configuration
Ethernet adapter Local Area Connection 2:
Connection-specific DNS Suffix . : local.lan
IP Address. . . . . . . . . . . . : 192.168.2.2
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.2.1
Ethernet adapter Local Area Connection:
Media State . . . . . . . . . . . : Media disconnected
PPP adapter pccw:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 218.103.239.113
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . : 218.103.239.113
This System.out.println(InetAddress.getLocalHost().getHostAddress());
give me 192.168.2.2, but i want it give me the ip of PPP adapter. How
to?
thanks
from Peter ([email protected])