Questions regarding static IP address

Hi,
I am doing a class project using Raspberry pi 3 and Home Assistant.
I have given static IP address on my home router and opened ports and everything is working fine.
I have connected the project with a domain using duckdns.org

I have to take the RPI 3 and sensors to class and demonstrate it.
I am facing a problem of demonstrating the project in class as I don’t access to router configuration in university so I can’t open ports.
Can somebody guide me, what can be the possible solution.?

Are you trying to use your home system as demonstration in the classroom? You could try forwarding a common port to your HA port on your home router or by using a VPN you serve at home and accessing everything internally if you’re allowed to access VPN’s from the school (don’t see why you wouldn’t).

If just for software demonstration, and not needing the physical device with you, you could use port tunneling in putty. Port 22 for SSH which is a common port is almost always allowed on networks. Essentially you initiate a SSH connection and within the settings of putty you configure it to redirect traffic on your home assistant port to a local port on the machine you’re using. Then you can log into the Home Assistant page in a browser with “localhost” or “127.0.0.1”. Below is a screen capture of how to enable this. Click the “Add” button after inputting the information.

I have to take raspberry pi and sensors in the class and show demonstration so that’s why I am confused.
I have asked the professor about this problem and he is not supportive.
As of now, I have done port forwarding at home in my router and it is working well.
But when I will take it to my class, I won’t have any access to the router so how to do port forwarding?

If you have the device with you in the class, why would you need port forwarding? You could setup your own network for your system to use and access it locally. Is it a requirement that it is accessible from outside of the local network?

My project has a domain name associated with it.
For example,
iotclassproject.com
I will be opening this website in class.
Moreover, I have TP-Link wireless smart plug used in the project which needs a static IP to work with Home Assistant.
Next thing is MQTT protocol,
I use tasker on android to track and send periodic mood updates to Home assistant using MQTT protocol.

Sounds like this is your answer.

If you’ve checked with the IT department and it isn’t possible for them to open the needed ports, you would need a router capable of VPN. Configure the slave router to connect to your home network master router via VPN and connect all the devices to the slave router that you setup in the calss. I haven’t done this so beyond the concept, I wont be any help but I’ve found that it is doable after a quick google search. Good luck with the project. Sounds like a challenge and a lot of fun. Should be an impressive presentation. :slight_smile:

I haven’t checked with IT department yet. I will try what you suggested and @forsquirel suggested. Thank you for an elaborative reply.

I previously used MQTT server to tie two HA instances together.
Pi running HA provided gpio sensor input to HA/MQTT server running on Synology NAS(any laptop or PC can do this)

Synology provided main interface and listened (MQTT)for sensor change on PI. You could point your iotclassproject.com site to this.

The pi sent (MQTT) sensor state to Synology server(no latency)

You can take pi with sensor to class and only need web access to connect to MQTT server.

You can SSH to server at home and login pi direct(need monitor ,keyboard,mouse) and demonstrate code or changes as needed