If you live or travel outside Iran, you have probably seen this: you open your Iranian bank's mobile app (often called "Hamrah Bank"), but the login screen never loads, a "server connection error" pops up, or online banking simply won't open in the browser. The same thing happens with Shaparak payment gateways, the Sana judiciary portal and Sejam. This guide explains why, and how to get back into your bank account safely and reliably.
The main reason: foreign IPs are blocked
Every device on the internet has an IP address that reveals its country and provider. Many Iranian banks and financial systems only accept connections to their online services from IP addresses inside Iran. The reasons are usually a mix of:
- Security: a large share of automated attacks and unauthorised login attempts come from foreign IPs, and closing that route lowers the bank's risk.
- Regulation and sanctions: Iran's banking system operates under international restrictions, and some services are deliberately designed for domestic use only.
- Infrastructure: some bank servers sit behind the domestic network and are hard or impossible to reach from outside.
So the problem isn't your phone or your account. The bank simply sees a request from a foreign IP and refuses it.
Why ordinary VPNs don't help
Most VPNs and anti-filtering tools are built for the opposite job: connecting users inside Iran to servers abroad. If you are already abroad, that changes nothing, because your IP stays foreign.
Some global VPN brands do list an "Iran" location, but it is usually virtual: the real server is in another country and only its IP is registered as Iranian. Banking systems often recognise these addresses, or the route from them into Iran's domestic network is slow and unstable.
Why a static IP matters
Even if you find an Iranian IP, it can cause new trouble if it keeps changing. Bank security systems watch login behaviour closely; repeated logins from different IPs can look suspicious and lead to extra verification, a temporary lock, or a call from the bank.
That's why the best setup is a static Iranian IP on a server that is really in Iran. The bank then sees the same familiar address every time, just like when you used to log in from home in Iran.
The second problem: one-time passcodes by SMS
Most Iranian banking apps send a one-time passcode (known as "ramz-e puya", the dynamic password) by text message to your Iranian number for logins and transfers. An Iranian IP doesn't fix this, because the SMS goes to the SIM card, not over the internet. Common workarounds:
- Roaming on your Iranian SIM: with roaming switched on you can usually receive texts abroad. Arrange it with your mobile operator before you travel.
- Your bank's own code generator: some banks can generate codes inside their app, or in a separate app, without SMS. If yours offers this, activate it before you leave Iran.
- Help from family: if the SIM card stays in Iran, some people get the code from a family member. This carries real security risk; share codes only with someone you trust completely.
Step-by-step fix
- Choose a service with a real server in Iran. Make sure it gives you a static IP and that the server is physically in Iran, not a virtual location.
- Install the app or config. Modern protocols like WireGuard are fast and light. If the network you're on restricts VPN traffic, AmneziaWG, which is designed to get past such restrictions, is the better choice.
- Connect and check your IP. Open an IP lookup site and make sure the country shows "Iran".
- Fully close and reopen the banking app. Some apps keep the old connection and keep showing the error until they are restarted.
- Always use the same server for each bank. A steady IP lowers the chance of your account being locked.
At NebulaVPN we run a server in Tehran with a static IP and AmneziaWG support for exactly this purpose. There is also a free daily plan, so you can check that your bank's app opens before you buy anything.
Security tips you shouldn't skip
- Enter your banking details only in your bank's official app or website, and install the app from a trusted source.
- Don't use anonymous free VPNs for banking; you can't know where your traffic goes.
- Never send your second password or one-time passcode to anyone claiming to be "support". No VPN service ever needs them.
- Log out of the banking app when you're done, especially on a shared device.
Frequently asked questions
Can logging in to my banking app with an Iranian IP get my account closed?
Logging in from an Iranian IP is exactly what the bank expects, so it doesn't cause problems by itself. What can raise flags is an IP and country that keep changing, which is why a static IP is recommended.
Will I receive my SMS passcodes once I have an Iranian IP?
No. The IP only affects your internet connection. To receive texts you need an Iranian SIM with roaming, or your bank's in-app code generator.
Does the same approach work for Sana, Sejam and Shaparak gateways?
In most cases, yes, because those systems usually apply the same foreign-IP restriction. Some may add other requirements, such as verification through your registered phone number.
Will Instagram and YouTube open while I'm on the Iranian IP?
Your traffic exits through Iran, so sites that are filtered inside Iran may not open. Connect to the Iranian server only while you use Iranian services, then disconnect.
Does it work on iPhone?
Yes. Both the official WireGuard app and the AmneziaWG app are available for iOS; you just import your config.