Many of us make IoT applications with WiFi but they only work in your local area network. Do you want to forward your public IP address to your local IP that is linked to your LinkitONE or any other board?
Like 192.168.x.xx to www.example.com?
Here I'll show you how you can do so and also link your board with a domain name!
Step 1: Why Port Forwarding?We make cool projects like IoT powered lights, smart agriculture, smart air quality sensors etc. But if we want to port it to a public IP, that means anyone can access it online.
The main aim is to bring everything from a local IP like 192.168.x.x to a domain like www.example.com
This is basically when you need to use AWS services with a static IP. Means your board is a server that catches data.
Step 2: What do you Need?1) no-ip.com account
2) A router that supports port forwarding (I'll be using 450TC1)
Step 3: Register on noip.comFirst create an account on no-ip.com and register.
Step 4: Get your Gateway IP AddressSearch your gateway IP address by running command ipconfig /all. It'll return you your internet connection info.
Step 5: Setup your RouterNow open your gateway page. It'll give you the connection settings. Here you can forward your local IP to public IP.
Step 6: Navigate the "Advanced Setup"Now navigate to the advanced setup option and click on "NAT". Then go to "Virtual Server Option"
Step 7: Set up Virtual ServersNow enter the public and local IP in the setup virtual server page. Here you can edit any of the ports you forwarded earlier.
My local IP is 192.168.1.3 and i'm forwarding it to 122.160.202.xx
Enter all the details correctly and save them!
Step 8: Setup DomainNow we'll setup the domain!
Navigate to "Manage Hosts" page. There click on add host and add your public IP and port number. Then save it and you are done!
You'll get your own domain name! You can access your LinkitONE with this domain.
Step 9: Attach the WiFi AntennaAttach your Linkit's WiFi antenna to test your board out!
Step 10: Test it Out!Now test it out!
Navigate to your local IP an show it off to your friends!
Congrats! you've forwarded your board to a domain!
Comments