Skip to content
Advertisement

Tag: port

What should be my port number if I am using php database locally in my pc and using that api in flutter mobile application using physical mobile

I am currently fetching api from php database(Served locally in my pc) and sending get/post request from flutter mobile application using url = “http://10.0.2.2:8000/api/login” , here I used port number 10.0.2.2 because I am using virtual emulator and it works fine. My question is what should be my port number if I am using physical mobile device to run flutter

PHP Port Scanning

This may be a duplicate post, BUT I’ve not seen any answer that correctly resolves this. I’m trying to find a php script that can correctly determine the state of a TCP or UDP port. I’ve tried several of the ones I’ve found online and they all return the wrong results. EG: On my local network I have ports 5000

Error running script.php: Port 9000 is busy

I set php.ini and Debug config in phpstorm. Trying to debug php script outputs in phpstorm Event log with: end of php.ini: Debug port in pStorm is also set on 9000. netstat -na outputs with: What if I set to other port. eg setting it to 10001 seems to do the job. Or just how to make it work properly.

Advertisement