Added support for custom url/port