Connect to board using a NAME instead of an IP

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Connect to board using a NAME instead of an IP

1,781 次查看
JaimeR
Contributor III

I would like to connect to my board using just a word and not an IP.

I've been looking for these network parameters but still don't exactly know what to do with them:

LWDNS_server_ipaddr

IPCFG_default_ip_address
IPCFG_default_ip_mask

IPCFG_default_ip_gateway

 

Is it possible to do this with the firmware and stack provided?

 

If anyone has an idea or comment about this, feel free to post it.

 

Regards,

0 项奖励
3 回复数

445 次查看
vier_kuifjes
Senior Contributor I
I believe the NETBIOS protocol is needed to do this. I'm not sure if this is available in MQX though...
0 项奖励

445 次查看
Nouchi
Senior Contributor II

Hello,

 

You probably need a DNS resolver to connect the board with domain name instead of IP address.

You can find informations about DNS resolver in MQXRTCSUG.pdf chapter 5.4.

 

 

Emmanuel

0 项奖励

445 次查看
JaimeR
Contributor III

Thank you, I believe the information I was looking for is in that user guide. I did  change the variables suggested in the guide, but unfortunatelly, I couldn't call the function DNSinit() because I didnt know which file to include. Since I dont know if this function is called in MQX libraries  I typed different things in the address bar from the browser(ns.arc.com for instance) to check if it worked but it didnt...

I will deeper check the guide in order to make this work.

Regards

 

0 项奖励