# Gitea migration

**URL:** <https://forum.gitea.com/t/gitea-migration/3112>\
**Category:** Install/Maintain/Configure\
**Created:** [March 26, 2021, 11:32am UTC](https://forum.gitea.com/t/gitea-migration/3112 "2021-03-26T11:32:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![peeg](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@peeg](https://forum.gitea.com/u/peeg)\
**Post date:** [March 26, 2021, 11:32am UTC](https://forum.gitea.com/t/gitea-migration/3112/1 "2021-03-26T11:32:12Z")

</div>

I’m trying to migrate from bitbucket server (self hosted) into Gitea (1.13.4-windows-4.0-amd65.exe).  
I get:  
migrate from server:7990 is not allowed: the host resolve to a private ip address ‘::1’  
Any ideas?

Regards,  
Per

---

<div class="post-metadata">

**Author:** ![vinc](https://avatars.discourse-cdn.com/v4/letter/v/e9c0ed/32.png) [@vinc](https://forum.gitea.com/u/vinc)\
**Post date:** [March 26, 2021, 4:07pm UTC](https://forum.gitea.com/t/gitea-migration/3112/2 "2021-03-26T16:07:55Z")

</div>

> [@peeg](#):
>
> server:7990

Hello  
i think server:7990 is nothing valid. Try to use the IP Address of the source

---

<div class="post-metadata">

**Author:** ![techknowlogick](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/techknowlogick/32/4706_2.png) [@techknowlogick](https://forum.gitea.com/u/techknowlogick)\
**Post date:** [March 27, 2021, 10:16pm UTC](https://forum.gitea.com/t/gitea-migration/3112/3 "2021-03-27T22:16:35Z")

</div>

For security reasons (SSRF) migrations that are referencing internal IPs are disallowed by default. To enable please review the following setting: [Config Cheat Sheet - Docs](https://docs.gitea.io/en-us/config-cheat-sheet/#migrations-migrations) `ALLOW_LOCALNETWORKS`

---

<div class="post-metadata">

**Author:** ![peeg](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@peeg](https://forum.gitea.com/u/peeg)\
**Post date:** [March 29, 2021, 6:54am UTC](https://forum.gitea.com/t/gitea-migration/3112/4 "2021-03-29T06:54:26Z")

</div>

Hi, I’m using a valid URL. I’ve also tried with ip address and in that case I get:  
“You are not allowed to import local repositories”  
In app.ini I have:  
[migration]  
ALLOW\_LOCALNETWORKS = true  
Also… I’m cloning from Bitbucket server. In new migration window I only see Git, GitHub, GitLab and Gitea so I’m trying with Git…  
Regards,  
Per

---

<div class="post-metadata">

**Author:** ![peeg](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@peeg](https://forum.gitea.com/u/peeg)\
**Post date:** [March 30, 2021, 8:51am UTC](https://forum.gitea.com/t/gitea-migration/3112/5 "2021-03-30T08:51:31Z")

</div>

Instead of new migration from gitea, why not use git terminal and clone original repo and push to gitea?

Regards,  
Per

---

<div class="post-metadata">

**Author:** ![lemm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/lemm/32/1568_2.png) [@lemm](https://forum.gitea.com/u/lemm)\
**Post date:** [September 3, 2021, 9:11am UTC](https://forum.gitea.com/t/gitea-migration/3112/6 "2021-09-03T09:11:52Z")

</div>

Hi,

> [@peeg](#):
>
> [migration]  
> ALLOW\_LOCALNETWORKS = true

One missing “s” on [migrations] ?

[migrations]  
ALLOW\_LOCALNETWORKS = true
