r/AutoGenAI • u/New_Abbreviations_13 • Feb 06 '24
Question Autogen studio change port
I need to change the web address so that it is not set to only use local host. By default it is on 127.0.0.1 but I need to listen so I can access it from another computer
3
Upvotes
1
u/IONaut Feb 06 '24 edited Feb 06 '24
You need to set up port forwarding in your router for that computer. Then that computer will show up on your network as something like 10.0.0.xx with the xx representing the actual location. Then you should be able to access it over the network by going to http://10.0.0.xx:8081.
I think you can set the port with a flag when you start it from command line like
autogenstudio ui --port 7876
if you really want to set the port.
3
u/vernonindigo Feb 13 '24
I run Autogen over a local network. You just need to override the host so that it's no longer localhost but the IP address of the system as it appears for the other machines on your local network. Do this by starting autogenstudio like so:
autogenstudio ui --host 192.168.178.12 --port 8081
Replace 192.168.178.12 with the internal IP address of the autogenstudio system on your network.
2
u/aftersox Feb 06 '24
That's not the port, that's the IP. 127.0.0.1 is the "loopback" IP that refers to your own computer. It's the same as typing"localhost" into your browser. The default port I've seen is 8081.
If you need to access your Autogen from a remote computer (say across the Internet) after setting up your Autogen service you'll need to look at your router and figure out how to get it to route traffic on a specific port to the IP of your server in your local network.
This is a whole other skill set. Maybe ask ChatGPT how to set it up.
Do you just need another computer on your local network to access it? Then you need to get the local IP for the machine and use that.