Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Network - getting the server IP

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-20-2008, 05:05 AM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 978
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default Network - getting the server IP

Hi
I'm playing with Wi-Fi network:
I got the devices on the same network using the wi-fi settings of the devices.
I can get the applications of the server and client connected with the help of the users - the server application reports the server's IP, then this is inserted to the client's application and used in this:

Server_IP = textbox1.text
Client.Connect (Server_IP,50000)

When running this type of network between desktop and device using the activesync network the connection is done using this:

client.Connect(client.GetIP2("PPP_PEER"),50000)

Does anybody know what should be used as replacement for "PPP_PEER" as a name for device-to-device network ? (I tried the name of the network which they are connected by but it does not work).

Thanks.
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #2 (permalink)  
Old 11-20-2008, 08:51 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by derez View Post
Does anybody know what should be used as replacement for "PPP_PEER" as a name for device-to-device network ?
You could try the device name as found in Start -> Settings -> About -> Device ID -> Devicename. However this doesn't work for me but then I don't really understand how local name resolution is supposed to work on home networks. When I've played with devices I've just used their IP address.
Reply With Quote
  #3 (permalink)  
Old 11-20-2008, 06:37 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 978
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

Thanks.
This way requires to know the device name, it is not simpler than to know the IP.
So I'll continue with the IP.
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dumping Data form device to server using Wi-Fi mozaharul Questions (Windows Mobile) 9 04-20-2010 08:31 AM
Read NMEA from Server schimanski Questions (Windows Mobile) 64 01-11-2009 05:00 PM
One server adn more clients Byak@ Questions (Windows Mobile) 2 08-12-2008 10:59 AM
Comunicating with a Telnet Server lu_ozzie Questions (Windows Mobile) 16 05-05-2008 05:25 PM
New server Erel Forum Discussion 12 11-06-2007 04:21 PM


All times are GMT. The time now is 03:16 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0