6

How to change server socket port number in Dart Editor? Because local tomcat using the 8080. Seem this port changed from 3030 to 8080 after update to version 1.5.0.

    --- 9:41:37 AM Starting pub serve : podium ---
    Loading source assets... (0.6s)
    Loading di transformers... (2.2s)
    Loading angular transformers... (0.9s)
    Failed to create server socket (OS Error: An attempt was made to access a socket in a way    forbidden by its access permissions.
, errno = 10013), address = 127.0.0.1, port = 8080
Günter Zöchbauer
  • 623,577
  • 216
  • 2,003
  • 1,567
Roger Chan
  • 1,293
  • 2
  • 11
  • 24

2 Answers2

3

You could run pub serve manually pub serve --port 1234 from command line and use a custom launch configuration with a defined URL that points to your pub serve.

dartbug.com is currently not available (at least for me) to verify if there is already a feature request, otherwise you should create one but I think I already saw one a while ago, but I'm not sure.

Günter Zöchbauer
  • 623,577
  • 216
  • 2,003
  • 1,567
  • There was a feature request (for the predecessor of pub serve) but it was closed as 'NotPlanned' https://code.google.com/p/dart/issues/detail?id=16654. You should create a new feature request. Please add a link here when you do. – Günter Zöchbauer May 29 '14 at 13:14
  • I also temporarily resolved with this answer. But there are solution make definitive on "eclipse launcher" ? – Domenico Monaco Aug 27 '14 at 11:23
0

I'm on OSx platform and I had same error after updating only SDK folder, without updating any other tools, editor ect...

I solved temporarly with launching pub serv manually by terminal

pub serve --port 1234

But to solve problem on Eclipse Editor I must clean all files of Dart installation with "AppCleaner" and reinstall all with new installation. With this solution I solved the problem.

Domenico Monaco
  • 1,236
  • 12
  • 21