Ip address issue
Hey just wanted to know that i use an nodejs api to retirive info so it needs an ip address when i add the ip address it works but when the repl restarts it doesnt work.
Any fixes? or any suggestions for me, thx in advance :)
Voters
Coder2195
BRUH I TRACKED IP ALL OVER THE WORLD AND I USED VPN TO CONFIRM
RYANTADIPARTHI
It's probably not saving. Use a database to save the IP address
from replit import db
Use that to save
DhirajBaid
@RYANTADIPARTHI Im not trying to save the ip im trying to make it not change im using express to host it on local host and it keeps changing (also im using nodejs)
RYANTADIPARTHI
@DhirajBaid well, that's the point of an API. It changes. You can't do anything about it. Try getting an normal ip.
DhirajBaid
@RYANTADIPARTHI im trying not mot make repls ip address change because since its on localhost it keeps changing
RYANTADIPARTHI
@DhirajBaid well, i don't know if you can stop that. i don't think you can
Not on repl.it, you can't get any real IP addresses through repl.it due to their proxy protocol.
lol yeah, you should use some other hosting solution, or if there can be, a username/password authentication
@DhirajBaidguess thats the answer :(
@Coder100:(
@DhirajBaid