How to specify the host IP when running the webapp of OBA

7 views
Skip to first unread message

Xavier Prudent

unread,
Feb 19, 2019, 4:00:53 PM2/19/19
to onebusaway-users
Dear all,

I want to set up a server instance of OBA-webapp to demonstrate the power of OBA to a transport company.
Setting OBA on my server is pretty straightforward, the -port option leaves me choose which port to open, but I don't see where I can specify the server IP to replace localhost.

Any clue?

Thanks,

Xavier

Sheldon A. Brown

unread,
Feb 20, 2019, 10:34:51 AM2/20/19
to onebusaw...@googlegroups.com
Are you referring to the quickstart module?

If so, it appears the module binds to all interfaces, so using the
I.P. should work as is and not need to be specified. If you are on a
machine with multiple public interfaces you probably shouldn't be
using the quickstart module.

Here's the code:
https://github.com/OneBusAway/onebusaway-application-modules/blob/f08a4188e985da9765b1b25130d47fbed63c56fa/onebusaway-quickstart/onebusaway-quickstart-mains/src/main/java/org/onebusaway/quickstart/bootstrap/WebappBootstrapMain.java#L79

Sheldon
> --
> You received this message because you are subscribed to the Google Groups "onebusaway-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to onebusaway-use...@googlegroups.com.
> To post to this group, send email to onebusaw...@googlegroups.com.
> Visit this group at https://groups.google.com/group/onebusaway-users.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages