Skip to Content
0
Former Member
Feb 23, 2009 at 03:16 PM

Query regarding cl_gui_frontend_services=>get_ip_address

263 Views

Hi,

I am using the method get_ip_address on class cl_gui_frontend_services to get the IP address of a machine.

However, the wrong IP address appears to be being picked up.

If I do an ip_config, I can see a list of 3 IP addresses, one for each of the following adapters:-

Ethernet Adapter local area connection

Ethernet Adapter Wireless Network Connection

Ethernet Adapter DrayTek Virtual Interface

I want the IP address of the local area connection but this method seems to be picking up one of the other ones.

Does anyone have any ideas on how I get round this?

Thanks,

Ruby