Shop OBEX P1 Docs P2 Docs Learn Events
RN171 EK - Cannot Ping From my PC [Both Kit and PC connected to same Network] — Parallax Forums

RN171 EK - Cannot Ping From my PC [Both Kit and PC connected to same Network]

Ravi SatiRavi Sati Posts: 7
edited 2013-08-17 19:21 in Accessories
Hi,

I am using RN171 - EK for to integrate WiFi capablities to some of our projects. I am able to use it in AP mode. It creates its own network and my PC can connect to it and data transfer over this network is also working properly.

But I want to be able to access my module [WiFi Kit] over internet. I need to transfer some data from WiFi Module to my PC using internet. But I am not even able to ping my RN171-EK ip address. I have set the static IP address for the Kit.
But I can ping other PCs on available on the same network.
I am using teraterm to configure the kit. I have set the network settings properly and using static ip.[Because when I tried using DHCP for this case, it was not getting Associated. and I was getting DHCP= FAIL, and IP= 0.0.0.0]. Using Static IP address , it gets connected. But I want to transfer data over this network . and the device isn't responding to ping command. So, I think it means its not in the network.
Could someone please assist me in making it work..

This is what teraterm window represents when i Connect to the Network...CTPL_NET_2 . I have set the wlan name and password before it and saved the configuration.
BOLD lines are the commands I entered to join the network and get wlan properties and ip ....Hope this gives some idea as to what could be the issue.

join CTPL_NET_2
Auto-Assoc CTPL_NET_2 chan=1 mode=WEP SCAN OK
Joining CTPL_NET_2 now..
<4.00> Associated!
DCHP Server Init
get wlan
SSID=CTPL_NET_2
Chan=11
ExtAnt=0
Join=7
Auth=MIXED
Mask=0x1fff
Rate=12, 24 Mb
Linkmon-Infra=30
Linkmon-AP=3600
Passphrase=XXXXXXXXXX
TxPower=12
EAP_Id=userid
EAP_User=peap-user
<4.00> get ip
IF=UP
DHCP=SERVER
IP=192.168.1.5:2000
NM=255.255.255.0
GW=192.168.1.5
HOST=0.0.0.0:2000
PROTO=TCP,
MTU=1524
FLAGS=0x7
TCPMODE=0x0
BACKUP=0.0.0.0
<4.00>ping 192.168.1.135
Ping try (len=32) 192.168.1.135
<4.00>

192.168.1.135 is my PCs ip address which is connected to CTPL_NET_2 network. When I try to ping the module from my PC, it syas Destination Host Unreachable.

Command Prompt :
ping 192.168.1.5
Pinging 192.168.1.5 with 32 bytes of data:
Reply from 192.168.1.135: Destination host unreachable.
Reply from 192.168.1.135: Destination host unreachable.
Reply from 192.168.1.135: Destination host unreachable.
Reply from 192.168.1.135: Destination host unreachable.
Ping statistics for 192.168.1.5:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Any help will be deeply appreciated...Thanks in advance...

Ravi

Comments

  • NWCCTVNWCCTV Posts: 3,629
    edited 2013-07-24 21:24
    Are you using a Router/Firewall in between any of your setup? One thing that comes to mind that even if you are able to connect but can not ping is that Allow Ping is turned off either on the device itself or in your Router if you have one. Does the RN171 - EK device have a web page setup? If so, I would say check it to see if allow ping is turned off somewhere.
  • Ravi SatiRavi Sati Posts: 7
    edited 2013-07-25 01:41
    Thanks...But I checked pinging other PC on the same network and it works...So it means Router allows pinging...and I checked the datasheet and Manual of RN171 kit..It doesn't say anything about disabling or enabling ping feature...They have given a command "ping <string1> <string2 [optinal]>" ... string1 is address and string2 is number of packets.
    If I do that...I dont get any response. It shows this ..:

    <4.00>ping 192.168.1.135
    Ping try (len=32) 192.168.1.135
    < 4.00>

    If I try pinging from PC....it says Destination Host Unreachable..
  • NWCCTVNWCCTV Posts: 3,629
    edited 2013-07-26 22:30
    So I am assuming you already scanned for and joined the network, correct. Did you release it from Command mode after the initial setup and turn DHCP off? Also, do you have your router set to forward port 2000 to the devices IP address?
  • xanaduxanadu Posts: 3,347
    edited 2013-07-27 21:03
    GW=192.168.1.5 ? Does that mean gateway? If so that should be your router's IP address, not the RN171 EK. Router is possibly 192.168.1.1?
  • NWCCTVNWCCTV Posts: 3,629
    edited 2013-07-27 21:26
    Good eye xanadu. I think you are correct because the DHCP Server looks to be at that same address. So, it looks like changing the IP Address on the RN171 might do the trick. I am surprised you did not get any IP conflict errors on any of your systems.
  • xanaduxanadu Posts: 3,347
    edited 2013-07-27 21:53
    Thanks NWCCTV.

    Just guess on this one, no experience with the device in question. Might be part of the problem and not all of it.

    With a Windows PC if its IP and default gateway are the same you should still be able to ping it on a LAN. If you're forwarding traffic from the WAN to a LAN IP with an invalid gateway it won't find its way back to the WAN.
  • Ravi SatiRavi Sati Posts: 7
    edited 2013-07-28 22:24
    Thanks NWCCTV..I did one experiment : I created one Hotspot using my Mobile 3G connection...and I connected my PC and the RN171 Module to it..The module got connected to it immediately with DHCP and then I tried pinging each other, it worked properly..and I was also able to trasfer data between PC and module back and forth over WiFi..So it appears to me to that it is the Router which may be the evil behind my troubles..I am using Belkin N750 DB Router here...But I don't know how to configure it to allow communication over Port 2000..I am working on it now and post the update if there is any progress..Meanwhile if you have idea on how to configure this Router, please guide me...Thanks for the advice..
  • NWCCTVNWCCTV Posts: 3,629
    edited 2013-07-28 22:24
    With a Windows PC if its IP and default gateway are the same you should still be able to ping it on a LAN
    Agreed. However, Like I said I am surpried there was no IP Conflict Error thrown at one of systems on the Network. I have seen that happen even if the conflict was not on the machine that the error appeared on.
  • NWCCTVNWCCTV Posts: 3,629
    edited 2013-07-28 22:37
    There's quite a bit of info on Port Forwarding for that device on Google: The link brings up a whole bunch of set up links including a Youtube link with step by step. In the future, steer clear of Belkin ANYTHING!!!!! Just IMO.
  • Ravi SatiRavi Sati Posts: 7
    edited 2013-07-28 22:38
    Thanks xanadu,

    I too checked that and I changed that GW = 192.168.1.1, Netmask = 255.255.255.0....But still no response on ping....
  • xanaduxanadu Posts: 3,347
    edited 2013-07-28 22:38
    If one device has 192.168.1.5 as its IP and gateway it wouldn't cause an IP conflict, it just wouldn't be able to connect to the outside world via the router.

    If he is trying to ping something on a LAN over a WAN it's not going to work anyway. I didn't see this was over the internet I thought it was all on a LAN. Over the internet you can ping the remote gateway address only, unless you're using some kind of VPN, NAT will not allow you to ping private address space like that.
  • xanaduxanadu Posts: 3,347
    edited 2013-07-28 22:41
    Ravi Sati wrote: »
    Thanks xanadu,

    I too checked that and I changed that GW = 192.168.1.1, Netmask = 255.255.255.0....But still no response on ping....

    Is this what you're doing, you have two different LANs connected via the internet? One device on one LAN cannot ping a device on the other LAN?

    Connected meaning port forward.
  • Ravi SatiRavi Sati Posts: 7
    edited 2013-07-28 22:48
    I have two LAN .. CTPL_NET and CTPL_NET_2 via the same router..But my PC and the module were connected to the same network [CTPL_NET_2]...so it should have pinged...right?...
    Because I was able to ping other PC on the same network...
  • Ravi SatiRavi Sati Posts: 7
    edited 2013-07-28 22:48
    And I would like to know one more thing guys...

    With my mobile 3G network, the device was able to connect with DHCP = ON means it easily got the IP dynamically..

    But with the Belkin Router Network , it was not able to connect in DHCP = ON mode...I had to assign static IP to connect it to the network [Even then there was problem with ping]...Could the restriction of communication over Port 2000 by th e Router be the reason for not being able to take Dynamic IP from the router..?
  • xanaduxanadu Posts: 3,347
    edited 2013-07-28 23:01
    A ping is a packet of data (ICMP) in order for it to work the device has to return the packet to the requester. There are a lot of reasons why this wouldn't happen, they are there is a firewall between them blocking it, they could be on separate private networks, or the device may not support echoing the request back. Just because something pulls an IP doesn't mean you'll get a ping response. It's a two way deal both side have to support it and there can't be a NAT firewall inbetween them.

    If you tell one private network (192.168.1.0/24) computer at 192.168.1.2 to ping another private network it won't work (w/ VPN exception), it has to be the same network, on the same LAN, unless you're using 1:1 NAT.

    On the LAN a device looks for the DHCP server, and requests an IP address, so if the router is your DHCP server, no port forwarding is needed for DHCP to work.

    If you drew a map of how everything is connected this would be a lot easier for us :)
  • Ravi SatiRavi Sati Posts: 7
    edited 2013-08-01 02:27
    Thanks xanadu and NWCCTV..

    I am using a BSNL "Broadband Connection". The modem's network SSID is CTPL_NET. Now the modem is connected to a Belkin Router which creates a network "CTPL_NET_2". The IP address of Router is 192.168.2.1 and I have set the DHCP range is (192.168.2.2/100) . Subnet mask is 255.255.255.0.

    Now if I connect my PC to CTPL_NET_2, it gets connected and properly gets the dynamic IP in the mentioned range [192.168.2.20 [current IP].
    But the RN171 module shows Associated and stastng DHCP..But never gets the IP from the Router...and therby it does't figure in the DHCP client list in Belkin page either.
    What I want to know is how is it that my PC can get the IP address from the Belkin Router ,But my RN171 - EK cannot. I think if it successfully gets the IP address once, it will work properly.
    All the PC's can get the IP address and can threby be pinged too.Earlier the settings were different [Router address being 192.168.1.7 and Range 10 to 200]. I have chnaged them to the above mentioned configuration. I have also allowed port forwarding at port 2000 from Router[Even though have a doubt here that what is the significance of this Private IP address in Virtual servers page where I have set the Port forwarding.]. I have also attached the screen shots of the Belkin Router Set Up Pages, so you may understand what I have done and guide me accordingly. Thanks..
    .
    1.jpg
    2.jpg
    .
    1024 x 640 - 70K
    1024 x 640 - 58K
    1.jpg 69.7K
    2.jpg 58.1K
  • xanaduxanadu Posts: 3,347
    edited 2013-08-01 21:10
    If the RN171 isn't pulling an IP from the DHCP server, but other devices are, then it is the RN171's configuration that needs work.

    Are you running one wireless network from your router and one from your "modem" (which must be a modem/router/access point/switch)? If so those networks are not going to be connected like a LAN and you're going to need to do some routing and or switch to allow the communication you want. Can you try all of this on one LAN and wireless access point on the same LAN subnet?
  • NWCCTVNWCCTV Posts: 3,629
    edited 2013-08-01 23:26
    One device on one LAN cannot ping a device on the other LAN
    This is easily accomplished using Loop Back to both LAN's. I have my own network set up this way so all of my systems can access my router so I do not have to use my Server only to access it.

    I would recommend turning DHCP off on your RN171 and set a Static IP to see what happens. Otherwise when your Modem/Router or RN171 are reset you risk not knowing what the IP address is and will have to go to the DHCP Server to find it. Just easier that way. Also, that may help determine what the issue is.
  • xanaduxanadu Posts: 3,347
    edited 2013-08-03 09:42
    NWCCTV wrote: »
    This is easily accomplished using Loop Back to both LAN's. I have my own network set up this way so all of my systems can access my router so I do not have to use my Server only to access it.

    I would recommend turning DHCP off on your RN171 and set a Static IP to see what happens. Otherwise when your Modem/Router or RN171 are reset you risk not knowing what the IP address is and will have to go to the DHCP Server to find it. Just easier that way. Also, that may help determine what the issue is.

    It was a question to him not a statement, you left out the question mark.
  • NWCCTVNWCCTV Posts: 3,629
    edited 2013-08-03 12:34
    My bad. You are correct. Sorry:(:(
  • xanaduxanadu Posts: 3,347
    edited 2013-08-03 19:12
    NWCCTV wrote: »
    My bad. You are correct. Sorry:(:(

    It's all good. Way off topic but I can ping 35 different LAN subnets from my home office lol!
  • NWCCTVNWCCTV Posts: 3,629
    edited 2013-08-03 21:21
    Now you're just showing off!!!! Still waiting on OP to see if it is figured out or not.
  • $WMc%$WMc% Posts: 1,884
    edited 2013-08-17 19:21
    If you start using static IP addresses (inside your LAN), Then you need to force your router to use static IP. You have two legally available for a LAN . 192.168.yyy.xxx and 10.0.yyy.xxx. You should force your PC to do the same. I ran in to the same problem using the RN174 a couple of years ago.
    '
    I'm sure you have looked at the WiFi encryption settings. I'm just pushing this out for other people looking at your posts for help.
    '
    A simple example of the IP start stack.
    '
    192.168. is fixed.
    '
    yyy. is the work group.
    '
    xxx is the node address. (0 to 255) Specific Device on the LAN.
    '
    Example
    WiFi router.......192.168.5.1..........Node add. of WiFi Router = 1
    PC...................192.168.5.12........Node add. of PC = 12
    RN171..............191.168.5.3.........Node add. = 3
    '
    5. is the work group in this example.
    '
    You need to be in the work group(yyy) for things to work rite.
Sign In or Register to comment.