Home/Support/Support Forum/TCP Client setting domain name instead ip address
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

TCP Client setting domain name instead ip address

0 votes
I need my DigiconnectME to connect to server in TCP Client mode but the server has dynamic ip so I need to enter in TCP Client settings the domain name (internet address) instead of the ip address.
Is it possible ?

Thanks
Luca
asked Jun 9, 2010 in Plug N' Play by viluvilu New to the Community (6 points)
recategorized Dec 10, 2013 by tuxembb

Please log in or register to answer this question.

14 Answers

0 votes
If you either use DHCP or enter DNS settings, you can use the standard gethostbyname() or gethostinfo() calls.

-Erik
answered Jun 9, 2010 by egawtry Veteran of the Digi Community (349 points)
0 votes
sorry, I don't understand.
I comunicate with DigiconnectME throught an external microprocessor by serial comunication, so when DigiconnectMe is in normal mode it works like simple ethernet converter so it's trasparent.
I can access to his internal parameters only when it's in SPI mode but "gethostbyname()" don't seem a SPI command
answered Jun 9, 2010 by viluvilu New to the Community (6 points)
0 votes
You will need to do some programming. If you are using some sort of prepackaged firmware, you need to get information on that. I cannot help you on software I have never used.

-Erik
answered Jun 9, 2010 by egawtry Veteran of the Digi Community (349 points)
0 votes
Are you using the Plug and Play firmware? If so, you need the 4MB unit to get hostname resolution capabilities. If you're using a module that was programmed by some 3rd parties software, you need to work with them in order to identify how to do what you're trying to do.
answered Jun 9, 2010 by charliek Veteran of the Digi Community (408 points)
0 votes
I think so, web server says:

System Information
Model: Digi Connect ME
Ethernet MAC Address: 00:40:9D:3B:45:8A

Firmware Version: 2.8.2 (Version 82001116_K 09/16/2008)
Boot Version: 0.0.0.1 (release_82000866_C)
POST Version: 1.1.3 (release_82000867_H)

CPU Utilization: 4%
Up Time: 5 hours 2 minutes 27 seconds
Total Memory: 8192 KB
Used Memory: 4036 KB
Free Memory: 4156 KB

I buy module with Digi firmware inside, the module doesn't have Jtag connector
answered Jun 9, 2010 by viluvilu New to the Community (6 points)
0 votes
Hi Luca,

this is unfortunately not possible. You need to enter an IP address for that field.
answered Jun 9, 2010 by kjensen8 Veteran of the Digi Community (653 points)
0 votes
how I could fix this?
Would I need firmware customization ?

In my current configuration (plug and play firmware), can I send a ping command to internet address ?
answered Jun 10, 2010 by viluvilu New to the Community (6 points)
0 votes
You could do it with custom firmware, yes.

With the plug and play firmware you can ping hostnames, provided you've specified a DNS server. Unfotunately though, the firmware doesn't tolerate host names for the TCP client (homepage -> configuration -> serial port -> tcp client settings).
answered Jun 10, 2010 by kjensen8 Veteran of the Digi Community (653 points)
0 votes
I don't know that program, is there a way to send data to different ports on IP addresses? If so, it wouldn't be hard to write a resolver from your controlling firmware.

-Erik
answered Jun 10, 2010 by egawtry Veteran of the Digi Community (349 points)
0 votes
kjensen8, I know I can send a ping command manually throught web browser (Administration -> System Information -> Diagnostics) but if I want send ping using microcontroller ?
Maybe there is a SPI command for do this ?
answered Jun 10, 2010 by viluvilu New to the Community (6 points)
...